Skip to content

Commit

Permalink
Credits in the game (#2570)
Browse files Browse the repository at this point in the history
* Fixed rubocop old setting name, fixed the folder detector and moved to it to a new file

* Started working on a credits from wiki retrieve script

* Made a script to generate the credits for the game

* Ignore the scripts folder when packaging the game

* As of now up to date credits file

* Basic test of up scrolling credits text

* Added loading of the game credits

* Added comment in the created credits json about it being autogenerated

* Current developer credits scroll now works

* Change to a string builder, fixed offsets for dynamic items when resizing

* Added different fonts for the dynamically generated credits headings

* Finished the credits showing

* Fix release making for the renamed assets file

* Renamed the variable used to determine if a file is old
  • Loading branch information
hhyyrylainen committed Sep 19, 2021
1 parent 4262627 commit 7cbe22d
Show file tree
Hide file tree
Showing 51 changed files with 7,245 additions and 632 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -138,3 +138,5 @@ package-lock.json

*.temp_check
/docker/*.tar.xz
/scripts/patrons.json
/scripts/translators.json
2 changes: 1 addition & 1 deletion .rubocop.yml
@@ -1,4 +1,4 @@
Metrics/LineLength:
Layout/LineLength:
Max: 95

Metrics/MethodLength:
Expand Down
3 changes: 3 additions & 0 deletions Thrive.csproj
Expand Up @@ -21,6 +21,7 @@
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="simulation_parameters\CompoundLoader.cs" />
<Compile Include="simulation_parameters\GameCredits.cs" />
<Compile Include="simulation_parameters\TranslationsInfo.cs" />
<Compile Include="src\auto-evo\simulation\food_source\CompoundFoodSource.cs" />
<Compile Include="src\auto-evo\simulation\food_source\FoodSource.cs" />
Expand Down Expand Up @@ -88,6 +89,7 @@
<Compile Include="src\gui_common\ChemicalEquation.cs" />
<Compile Include="src\gui_common\CompoundAmount.cs" />
<Compile Include="src\gui_common\CompoundListBox.cs" />
<Compile Include="src\gui_common\CreditsScroll.cs" />
<Compile Include="src\gui_common\CustomDropDown.cs" />
<Compile Include="src\gui_common\CustomRichTextLabel.cs" />
<Compile Include="src\gui_common\tooltip\DefaultToolTip.cs" />
Expand Down Expand Up @@ -339,6 +341,7 @@
</ItemGroup>
<ItemGroup>
<Content Include="export_presets.cfg" />
<Content Include="simulation_parameters\common\credits.json" />
<Content Include="simulation_parameters\common\help_texts.json" />
<Content Include="simulation_parameters\common\input_options.json" />
<Content Include="simulation_parameters\common\music_tracks.json" />
Expand Down
6 changes: 6 additions & 0 deletions Thrive.sln.DotSettings
Expand Up @@ -461,10 +461,13 @@
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=JSON/@EntryIndexedValue">JSON</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=MP/@EntryIndexedValue">MP</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=MSAA/@EntryIndexedValue">MSAA</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=OFL/@EntryIndexedValue">OFL</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=GPL/@EntryIndexedValue">GPL</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=OS/@EntryIndexedValue">OS</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=SFX/@EntryIndexedValue">SFX</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=UI/@EntryIndexedValue">UI</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=UV/@EntryIndexedValue">UV</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=VIP/@EntryIndexedValue">VIP</s:String>
<s:Boolean x:Key="/Default/CodeStyle/Naming/CSharpNaming/ApplyAutoDetectedRules/@EntryValue">False</s:Boolean>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=Constants/@EntryIndexedValue">&lt;Policy Inspect="True" Prefix="" Suffix="" Style="AA_BB" /&gt;</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PrivateConstants/@EntryIndexedValue">&lt;Policy Inspect="True" Prefix="" Suffix="" Style="AaBb"&gt;&lt;ExtraRule Prefix="" Suffix="" Style="AA_BB" /&gt;&lt;/Policy&gt;</s:String>
Expand Down Expand Up @@ -497,6 +500,7 @@
<s:Boolean x:Key="/Default/UserDictionary/Words/=Despawns/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=devbuilds/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Displayer/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Donators/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=engulfable/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=engulfer/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=eukaryotic/@EntryIndexedValue">True</s:Boolean>
Expand Down Expand Up @@ -531,6 +535,7 @@
<s:Boolean x:Key="/Default/UserDictionary/Words/=Osmoregulation/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=overgenerate/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=oxytoxy/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=PATREON/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=pili/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=pilus/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=playthrough/@EntryIndexedValue">True</s:Boolean>
Expand Down Expand Up @@ -559,6 +564,7 @@
<s:Boolean x:Key="/Default/UserDictionary/Words/=tweening/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=unapplied/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=unpaused/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Unported/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Upgrader/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=venter/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=vseparation/@EntryIndexedValue">True</s:Boolean>
Expand Down
4 changes: 2 additions & 2 deletions assets/README.md → assets/README.txt
@@ -1,5 +1,5 @@
License Info
============
Asset License Info
==================

With some exceptions, all assets in the assets folder
and subfolders use a Creative Commons license as defined
Expand Down
8 changes: 4 additions & 4 deletions export_presets.cfg
Expand Up @@ -6,7 +6,7 @@ runnable=true
custom_features=""
export_filter="all_resources"
include_filter="*.json, *.txt"
exclude_filter="stylecop.json, test/*, RubySetupSystem/*, builds/*, *mono_crash*, fast_build_mode.json, docker/*"
exclude_filter="stylecop.json, test/*, RubySetupSystem/*, builds/*, *mono_crash*, fast_build_mode.json, docker/*, scripts/*"
export_path="builds/Thrive.x86_64"
script_export_mode=1
script_encryption_key=""
Expand All @@ -31,7 +31,7 @@ runnable=true
custom_features=""
export_filter="all_resources"
include_filter="*.json, *.txt"
exclude_filter="stylecop.json, test/*, RubySetupSystem/*, builds/*, *mono_crash*, fast_build_mode.json, docker/*"
exclude_filter="stylecop.json, test/*, RubySetupSystem/*, builds/*, *mono_crash*, fast_build_mode.json, docker/*, scripts/*"
export_path="builds/Thrive.exe"
script_export_mode=1
script_encryption_key=""
Expand Down Expand Up @@ -72,7 +72,7 @@ runnable=false
custom_features=""
export_filter="all_resources"
include_filter="*.json, *.txt"
exclude_filter="stylecop.json, test/*, RubySetupSystem/*, builds/*, *mono_crash*, fast_build_mode.json, docker/*"
exclude_filter="stylecop.json, test/*, RubySetupSystem/*, builds/*, *mono_crash*, fast_build_mode.json, docker/*, scripts/*"
export_path="builds/Thrive.exe"
script_export_mode=1
script_encryption_key=""
Expand Down Expand Up @@ -113,7 +113,7 @@ runnable=true
custom_features=""
export_filter="all_resources"
include_filter="*.json, *.txt"
exclude_filter="stylecop.json, test/*, RubySetupSystem/*, builds/*, *mono_crash*, fast_build_mode.json, docker/*"
exclude_filter="stylecop.json, test/*, RubySetupSystem/*, builds/*, *mono_crash*, fast_build_mode.json, docker/*, scripts/*"
export_path="builds/Thrive.zip"
script_export_mode=1
script_encryption_key=""
Expand Down
172 changes: 152 additions & 20 deletions locale/bg.po
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2021-09-09 21:04+1000\n"
"POT-Creation-Date: 2021-09-17 17:10+0300\n"
"PO-Revision-Date: 2021-09-12 07:51+0000\n"
"Last-Translator: Georgi Georgiev (Жоро) <g.georgiev.shumen@gmail.com>\n"
"Language-Team: Bulgarian <https://translate.revolutionarygamesstudio.com/"
Expand Down Expand Up @@ -1378,61 +1378,61 @@ msgstr "От: {0}"
msgid "CLOSE"
msgstr "Затваряне"

#: ../src/general/MainMenu.cs:359
#: ../src/general/MainMenu.cs:394
msgid "OK"
msgstr "ОК"

#: ../src/general/MainMenu.cs:360
#: ../src/general/MainMenu.cs:395
msgid "Cancel"
msgstr "Отказ"

#: ../src/general/MainMenu.tscn:146
#: ../src/general/MainMenu.tscn:149
msgid "NEW_GAME"
msgstr "Нова игра"

#: ../src/general/MainMenu.tscn:159 ../src/general/PauseMenu.tscn:72
#: ../src/general/MainMenu.tscn:162 ../src/general/PauseMenu.tscn:72
msgid "LOAD_GAME"
msgstr "Зареждане"

#: ../src/general/MainMenu.tscn:170 ../src/general/PauseMenu.tscn:94
#: ../src/general/MainMenu.tscn:173 ../src/general/PauseMenu.tscn:94
msgid "OPTIONS"
msgstr "Настройки"

#: ../src/general/MainMenu.tscn:181
#: ../src/general/MainMenu.tscn:184
msgid "TOOLS"
msgstr "Инструменти"

#: ../src/general/MainMenu.tscn:192
#: ../src/general/MainMenu.tscn:195
msgid "VIEW_SOURCE_CODE"
msgstr "Изходен код"

#: ../src/general/MainMenu.tscn:204
#: ../src/general/MainMenu.tscn:207
msgid "EXTRAS"
msgstr "Екстри"

#: ../src/general/MainMenu.tscn:216
#: ../src/general/MainMenu.tscn:218
msgid "CREDITS"
msgstr "Екип"

#: ../src/general/MainMenu.tscn:227
#: ../src/general/MainMenu.tscn:229
msgid "QUIT"
msgstr "Изход"

#: ../src/general/MainMenu.tscn:249
#: ../src/general/MainMenu.tscn:251
msgid "MICROBE_FREEBUILD_EDITOR"
msgstr "Микробен редактор"

#: ../src/general/MainMenu.tscn:309 ../src/general/OptionsMenu.tscn:1173
#: ../src/general/PauseMenu.tscn:134 ../src/saving/NewSaveMenu.tscn:108
#: ../src/saving/SaveManagerGUI.tscn:120
#: ../src/general/MainMenu.tscn:311 ../src/general/MainMenu.tscn:345
#: ../src/general/OptionsMenu.tscn:1173 ../src/general/PauseMenu.tscn:134
#: ../src/saving/NewSaveMenu.tscn:108 ../src/saving/SaveManagerGUI.tscn:120
msgid "BACK"
msgstr "Назад"

#: ../src/general/MainMenu.tscn:349
#: ../src/general/MainMenu.tscn:382
msgid "GLES2_MODE_WARNING"
msgstr "Предупреждение за „GLES2“"

#: ../src/general/MainMenu.tscn:362
#: ../src/general/MainMenu.tscn:395
msgid "GLES2_MODE_WARNING_TEXT"
msgstr ""
"В момента „Thrive“ се изпълнява с „GLES2“. Това не е препоръчително и може "
Expand Down Expand Up @@ -1775,6 +1775,141 @@ msgstr "при"
msgid "PERCENTAGE_VALUE"
msgstr "{0} %"

#: ../src/gui_common/CreditsScroll.cs:228
msgid "LEAD_DEVELOPERS"
msgstr ""

#: ../src/gui_common/CreditsScroll.cs:234
msgid "LEAD_PROGRAMMER"
msgstr ""

#: ../src/gui_common/CreditsScroll.cs:235
msgid "LEAD_PROGRAMMERS"
msgstr ""

#: ../src/gui_common/CreditsScroll.cs:240
msgid "LEAD_THEORIST"
msgstr ""

#: ../src/gui_common/CreditsScroll.cs:241
msgid "LEAD_THEORISTS"
msgstr ""

#: ../src/gui_common/CreditsScroll.cs:246
msgid "LEAD_ARTIST"
msgstr ""

#: ../src/gui_common/CreditsScroll.cs:247
msgid "LEAD_ARTISTS"
msgstr ""

#: ../src/gui_common/CreditsScroll.cs:252
msgid "SOUND_TEAM_LEAD"
msgstr ""

#: ../src/gui_common/CreditsScroll.cs:253
msgid "SOUND_TEAM_LEADS"
msgstr ""

#: ../src/gui_common/CreditsScroll.cs:258
msgid "LEAD_OUTREACH_PERSON"
msgstr ""

#: ../src/gui_common/CreditsScroll.cs:259
msgid "LEAD_OUTREACH_PEOPLE"
msgstr ""

#: ../src/gui_common/CreditsScroll.cs:264
msgid "LEAD_GAME_DESIGNER"
msgstr ""

#: ../src/gui_common/CreditsScroll.cs:265
msgid "LEAD_GAME_DESIGNERS"
msgstr ""

#: ../src/gui_common/CreditsScroll.cs:270
msgid "LEAD_TESTER"
msgstr ""

#: ../src/gui_common/CreditsScroll.cs:271
#, fuzzy
msgid "LEAD_TESTERS"
msgstr "*"

#: ../src/gui_common/CreditsScroll.cs:276
msgid "LEAD_PROJECT_MANAGER"
msgstr ""

#: ../src/gui_common/CreditsScroll.cs:277
msgid "LEAD_PROJECT_MANAGERS"
msgstr ""

#: ../src/gui_common/CreditsScroll.cs:284
msgid "CURRENT_DEVELOPERS"
msgstr ""

#: ../src/gui_common/CreditsScroll.cs:300
msgid "PAST_DEVELOPERS"
msgstr ""

#: ../src/gui_common/CreditsScroll.cs:316
msgid "OUTSIDE_CONTRIBUTORS"
msgstr ""

#: ../src/gui_common/CreditsScroll.cs:319
msgid "YOU_CAN_MAKE_PULL_REQUEST"
msgstr ""

#: ../src/gui_common/CreditsScroll.cs:334
msgid "PATRONS"
msgstr ""

#: ../src/gui_common/CreditsScroll.cs:338
msgid "YOU_CAN_SUPPORT_THRIVE_ON_PATREON"
msgstr ""

#: ../src/gui_common/CreditsScroll.cs:341
msgid "VIP_PATRONS"
msgstr ""

#: ../src/gui_common/CreditsScroll.cs:342
msgid "DEV_BUILD_PATRONS"
msgstr ""

#: ../src/gui_common/CreditsScroll.cs:344
msgid "SUPPORTER_PATRONS"
msgstr ""

#: ../src/gui_common/CreditsScroll.cs:354
#, fuzzy
msgid "DONATIONS"
msgstr "Настройки"

#: ../src/gui_common/CreditsScroll.cs:377
#, fuzzy
msgid "TRANSLATORS"
msgstr "Допринасяне към превода"

#: ../src/gui_common/CreditsScroll.cs:391
msgid "USED_LIBRARIES_LICENSES"
msgstr ""

#: ../src/gui_common/CreditsScroll.cs:485
msgid "THANKS_FOR_PLAYING"
msgstr ""

#: ../src/gui_common/CreditsScroll.tscn:45
msgid "BY_REVOLUTIONARY_GAMES"
msgstr ""

#: ../src/gui_common/CreditsScroll.tscn:52
msgid "DEVELOPMENT_SUPPORTED_BY"
msgstr ""

#: ../src/gui_common/CreditsScroll.tscn:60
msgid "DEVELOPERS"
msgstr ""

#: ../src/gui_common/QuickLoadHandler.tscn:18
msgid "SAVE_HAS_DIFFERENT_VERSION"
msgstr "Версията на записа е различна"
Expand Down Expand Up @@ -3463,9 +3598,6 @@ msgstr ""
#~ msgid "PARENRIGHT"
#~ msgstr ")"

#~ msgid "ASTERISK"
#~ msgstr "*"

#~ msgid "PLUS"
#~ msgstr "+"

Expand Down

0 comments on commit 7cbe22d

Please sign in to comment.