Skip to content

Commit

Permalink
Update credits
Browse files Browse the repository at this point in the history
  • Loading branch information
SebLague committed May 17, 2022
1 parent fdf318b commit fed5c5c
Show file tree
Hide file tree
Showing 5 changed files with 200 additions and 212 deletions.
8 changes: 8 additions & 0 deletions Assets/Data/Credits.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Assets/Data/Credits/Contributors.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Farès SIONI, Agentew04, Maltejur, StuSerious, Pattrigue, EvilSouls, MillersMan, Tposejank, Racooder, jancborchardt
7 changes: 7 additions & 0 deletions Assets/Data/Credits/Contributors.txt.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

390 changes: 180 additions & 210 deletions Assets/Scenes/Game.unity

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions Assets/Scripts/Menu/CreditsMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

public class CreditsMenu : Menu
{
public TextAsset contributersFile;
public TMP_Text text;
public Color linkCol;
public Color linkHoverCol;
Expand Down Expand Up @@ -57,11 +58,12 @@ void Refresh()
AddText(SetColour("A huge thanks to the following people for contributing various bug fixes, features, and translations to the project on GitHub:", Color.white));
AddLineBreak();

string[] contributorNames = { "Fsioni", "Agentew04", "Maltejur", "StuSerious", "Pattrigue", "EvilSouls", "MillersMan", "Tposejank" };
string[] contributorNames = contributersFile.text.Split(',');
for (int i = 0; i < contributorNames.Length; i++)
{
bool isLast = i == contributorNames.Length - 1;
AddText(contributorNames[i] + (isLast ? "." : ", "));
string contributorName = contributorNames[i].Trim();
AddText(contributorName + (isLast ? "." : ", "));
}
}

Expand Down

0 comments on commit fed5c5c

Please sign in to comment.