diff options
author | BigBrotherNii <nicochr1004@gmail.com> | 2024-07-26 15:44:04 +0200 |
---|---|---|
committer | BigBrotherNii <nicochr1004@gmail.com> | 2024-07-26 15:44:04 +0200 |
commit | 5af9155955bc07e2333c81f4f5c56b97ff63aa79 (patch) | |
tree | 237889b9a9f710bd2f1e4bafc29fa936bad20c16 | |
parent | b6e0b8a5ab384bbbaa4a5ca27874f77281480631 (diff) | |
download | hurrycurry-5af9155955bc07e2333c81f4f5c56b97ff63aa79.tar hurrycurry-5af9155955bc07e2333c81f4f5c56b97ff63aa79.tar.bz2 hurrycurry-5af9155955bc07e2333c81f4f5c56b97ff63aa79.tar.zst |
improved credits
-rw-r--r-- | client/menu/credits.gd | 78 | ||||
-rw-r--r-- | client/menu/credits.tscn | 1 |
2 files changed, 54 insertions, 25 deletions
diff --git a/client/menu/credits.gd b/client/menu/credits.gd index 02862e6e..91b9ea1c 100644 --- a/client/menu/credits.gd +++ b/client/menu/credits.gd @@ -1,6 +1,7 @@ # Hurry Curry! - a game about cooking # Copyright 2024 metamuffin # Copyright 2024 nokoe +# Copyright 2024 BigBrotherNii # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by @@ -16,8 +17,10 @@ # extends Menu -var contributors := ["sofviic", "metamuffin", "nokoe", "tpart"] -var cc_0 := ["kenney.nl", "Kay Lousberg", "Quaternius"] +const SPACER: String = "\n\n\n" +const THX: String = "[b]Thank You For Playing[/b]" + +var contributors := ["sofviic", "metamuffin", "nokoe", "tpart", "BigBrotherNii"] var cc_by_3 := { "Game_over.wav": "deleted_user_877451" } @@ -27,7 +30,13 @@ var cc_by_4 := { "Pencil, Writing, Close, A.wav": "InspectorJ", "Super Dialogue Audio Pack": "Dillon Becker", "Universal UI/Menu Soundpack": "Ellr", - "Woosh Fleuret Escrime B.WAV": "toyoto" + "Woosh Fleuret Escrime B.wav": "toyoto", +} +var cc_by_0 := ["kenney.nl","Kay Lousberg","Quaternius"] +var links := { + "Creative Commons: By Attribution\n3.0 License":"https://creativecommons.org/licenses/by/3.0", + "Creative Commons: By Attribution\n4.0 License":"https://creativecommons.org/licenses/by/4.0", + "Weblate":"https://translate.codeberg.org/projects/hurrycurry/", } @onready var label = $MarginContainer/Panel/MarginContainer/VBoxContainer/RichTextLabel @@ -35,33 +44,52 @@ var cc_by_4 := { func _ready(): super() contributors.shuffle() - var text: String = "[center][b]%s[/b]\n\n%s\n\n[b]%s[/b]\n\n" % [ + var cont: String + for i in contributors.size(): + cont += contributors[i]+"\n" + var title_and_contribors: String = "[center][b]%s[/b]\n\n%s\n\n[b]%s[/b]\n" % [ tr("Hurry Curry! - a game about cooking"), tr("developed by"), - ", ".join(contributors) + cont ] - label.text = text - - for k in cc_by_3.keys(): - var v = cc_by_3[k] - label.text += "[b]\"%s\" by %s[/b]\n%s\nhttps://creativecommons.org/licenses/by/3.0/\n\n" % [ - k, - v, - tr("Licensed under Creative Commons: By Attribution 3.0 License") + label.text += title_and_contribors + SPACER + + var cc_3 : String = "[b]"+tr("Licensed under Creative Commons: By Attribution 3.0 License")+"[/b]\n\n[table=3]" + for i in cc_by_3.keys(): + cc_3 += "[cell]%s[/cell][cell]by[/cell][cell]%s[/cell]" % [ + i, + cc_by_3[i] ] - - for k in cc_by_4.keys(): - var v = cc_by_4[k] - label.text += "[b]\"%s\" by %s[/b]\n%s\nhttps://creativecommons.org/licenses/by/4.0/\n\n" % [ - k, - v, - tr("Licensed under Creative Commons: By Attribution 4.0 License") + cc_3 += "[/table]" + label.text += cc_3 + SPACER + + var cc_4 : String = "[b]"+tr("Licensed under Creative Commons: By Attribution 4.0 License")+"[/b]\n\n[table=3]" + for i in cc_by_4.keys(): + cc_4 += "[cell]%s[/cell][cell]by[/cell][cell]%s[/cell]" % [ + i, + cc_by_4[i] ] - - label.text += "[b]%s[/b]\n%s" % [ - tr("Additional CC0 assets by:"), - "\n".join(cc_0) - ] + cc_4 += "[/table]" + label.text += cc_4 + SPACER + + var cc_0: String = "[b]"+tr("Additional CC0 assets by")+"[/b]\n\n" + cc_0 += "\n".join(cc_by_0) + label.text += cc_0 + SPACER + + var special: String = "[b]"+tr("Support for Translations by")+"[/b]\n\nOur supporters on Weblate" + label.text += special + SPACER + + var info: String = "[b]"+tr("For further information on")+"[/b]\n\n[table=3]" + for i in links.keys(): + info += "[cell]%s[/cell][cell]visit[/cell][cell]%s[/cell]" % [ + i, + links[i] + ] + info += "[/table]" + label.text += info + SPACER + + + label.text += SPACER + THX + SPACER + SPACER + SPACER func _on_back_pressed(): exit() diff --git a/client/menu/credits.tscn b/client/menu/credits.tscn index 8ac062be..7b7b7ff0 100644 --- a/client/menu/credits.tscn +++ b/client/menu/credits.tscn @@ -46,6 +46,7 @@ layout_mode = 2 layout_mode = 2 size_flags_vertical = 3 auto_translate = false +theme_override_constants/table_h_separation = 25 theme_override_font_sizes/normal_font_size = 22 theme_override_font_sizes/bold_font_size = 22 theme_override_font_sizes/italics_font_size = 22 |