diff options
author | tpart <tpart120@proton.me> | 2024-06-25 21:56:57 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-06-25 21:56:57 +0200 |
commit | 2f58043b733c1e93f5f8666c01b30596a3f395c6 (patch) | |
tree | 6b0d44753166025363e941c943cf71726232c3a0 | |
parent | e36ef0b93bb2bf4945b7760fa172cd5f5f06b720 (diff) | |
download | hurrycurry-2f58043b733c1e93f5f8666c01b30596a3f395c6.tar hurrycurry-2f58043b733c1e93f5f8666c01b30596a3f395c6.tar.bz2 hurrycurry-2f58043b733c1e93f5f8666c01b30596a3f395c6.tar.zst |
Improve credits menu
-rw-r--r-- | client/menu/credits_menu.gd | 20 | ||||
-rw-r--r-- | client/menu/credits_menu.tscn | 49 |
2 files changed, 44 insertions, 25 deletions
diff --git a/client/menu/credits_menu.gd b/client/menu/credits_menu.gd index 3949b5c0..e3ea4c51 100644 --- a/client/menu/credits_menu.gd +++ b/client/menu/credits_menu.gd @@ -15,5 +15,25 @@ # extends Control +var contributors := ["sofviic", "metamuffin", "nokoe", "tpart"] +var cc_0 := ["kenney.nl", "Kay Lousberg"] +var cc_by_3 := { + "Glasses": "Jeremy Edelblut" +} + +@onready var label = $Panel/MarginContainer/VBoxContainer/RichTextLabel + +func _ready(): + contributors.shuffle() + label.text = "[center][b]undercooked - a game about cooking[/b]\n\ndeveloped by\n\n[b]" + label.text += ", ".join(contributors) + label.text += "[/b]\n\n" + + for k in cc_by_3.keys(): + var v = cc_by_3[k] + label.text += "[b]\"%s\" %s[/b]\nLicensed under Creative Commons: By Attribution 3.0 License\nhttps://creativecommons.org/licenses/by/3.0/\n\n" % [k, v] + + label.text += "[b]Additional CC0 assets by:[/b]\n" + "\n".join(cc_0) + func _on_back_pressed(): $SceneTransition.transition_to("res://menu/main_menu.tscn") diff --git a/client/menu/credits_menu.tscn b/client/menu/credits_menu.tscn index 8c2fa5ed..197b4ef8 100644 --- a/client/menu/credits_menu.tscn +++ b/client/menu/credits_menu.tscn @@ -6,7 +6,7 @@ [ext_resource type="PackedScene" uid="uid://bg2d78ycorcqk" path="res://menu/scene_transition.tscn" id="4_fbbdb"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_p2qmw"] -bg_color = Color(0, 0, 0, 0.576471) +bg_color = Color(0, 0, 0, 0.878431) [node name="CreditsMenu" type="Control"] layout_mode = 3 @@ -29,19 +29,29 @@ grow_horizontal = 2 grow_vertical = 2 theme_override_styles/panel = SubResource("StyleBoxFlat_p2qmw") -[node name="RichTextLabel" type="RichTextLabel" parent="Panel"] +[node name="MarginContainer" type="MarginContainer" parent="Panel"] layout_mode = 1 -anchors_preset = 8 -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -offset_left = -222.0 -offset_top = -112.0 -offset_right = 222.0 -offset_bottom = 125.0 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 +theme_override_constants/margin_left = 50 +theme_override_constants/margin_top = 50 +theme_override_constants/margin_right = 50 +theme_override_constants/margin_bottom = 50 + +[node name="VBoxContainer" type="VBoxContainer" parent="Panel/MarginContainer"] +layout_mode = 2 + +[node name="RichTextLabel" type="RichTextLabel" parent="Panel/MarginContainer/VBoxContainer"] +layout_mode = 2 +size_flags_vertical = 3 +theme_override_font_sizes/normal_font_size = 22 +theme_override_font_sizes/bold_font_size = 22 +theme_override_font_sizes/italics_font_size = 22 +theme_override_font_sizes/bold_italics_font_size = 22 +theme_override_font_sizes/mono_font_size = 22 bbcode_enabled = true text = "[center][b]undercooked - a game about cooking[/b] @@ -52,23 +62,12 @@ by using various models from kenney.nl [/center]" -[node name="back" type="Button" parent="Panel"] -layout_mode = 1 -anchors_preset = 7 -anchor_left = 0.5 -anchor_top = 1.0 -anchor_right = 0.5 -anchor_bottom = 1.0 -offset_left = -79.0 -offset_top = -65.0 -offset_right = 81.0 -offset_bottom = -34.0 -grow_horizontal = 2 -grow_vertical = 0 +[node name="back" type="Button" parent="Panel/MarginContainer/VBoxContainer"] +layout_mode = 2 text = "Back" [node name="SceneTransition" parent="." instance=ExtResource("4_fbbdb")] visible = false layout_mode = 1 -[connection signal="pressed" from="Panel/back" to="." method="_on_back_pressed"] +[connection signal="pressed" from="Panel/MarginContainer/VBoxContainer/back" to="." method="_on_back_pressed"] |