diff options
author | Brendan Griffiths <96725360+Orwellian-225@users.noreply.github.com> | 2023-03-01 17:00:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-01 17:00:24 +0100 |
commit | 4e099cf1d3f5fa37e9aa520d90aaf505fee3ce23 (patch) | |
tree | 5355285405336b55eeab21ca5ecc24c8e9ecf1d8 /game/src/MainMenu | |
parent | 2062aaf394ee6581161add4bcb23076475e236ac (diff) |
add: credits.csv - req: FS4 (#16)
Requirements met by this PR:
SS-17
SS-29 [1]
UI-32
UI-34
UIFUN-36
UI-35
UI-38
UIFUN-37
FS-4
Diffstat (limited to 'game/src/MainMenu')
-rw-r--r-- | game/src/MainMenu/MainMenu.gd | 7 | ||||
-rw-r--r-- | game/src/MainMenu/MainMenu.tscn | 16 |
2 files changed, 21 insertions, 2 deletions
diff --git a/game/src/MainMenu/MainMenu.gd b/game/src/MainMenu/MainMenu.gd index 1e15d10..4ffa3b0 100644 --- a/game/src/MainMenu/MainMenu.gd +++ b/game/src/MainMenu/MainMenu.gd @@ -2,6 +2,7 @@ extends Control signal options_button_pressed signal new_game_button_pressed +signal credits_button_pressed @export var _new_game_button : BaseButton @@ -37,6 +38,12 @@ func _on_options_button_pressed(): print("Check out some options!") options_button_pressed.emit() +# REQUIREMENTS +# * UI-32 +# * UIFUN-36 +func _on_credits_button_pressed(): + credits_button_pressed.emit() + func _on_exit_button_pressed(): print("See you later!") diff --git a/game/src/MainMenu/MainMenu.tscn b/game/src/MainMenu/MainMenu.tscn index f306c63..8d8a713 100644 --- a/game/src/MainMenu/MainMenu.tscn +++ b/game/src/MainMenu/MainMenu.tscn @@ -88,13 +88,24 @@ clip_text = true layout_mode = 2 size_flags_horizontal = 3 focus_neighbor_left = NodePath("../MultiplayerButton") -focus_neighbor_right = NodePath("../ExitButton") -focus_next = NodePath("../ExitButton") +focus_neighbor_right = NodePath("../CreditsButton") +focus_next = NodePath("../CreditsButton") focus_previous = NodePath("../MultiplayerButton") theme_type_variation = &"Button_MainMenu" text = "Options" clip_text = true +[node name="CreditsButton" type="Button" parent="Panel/VBox/Margin/ButtonList"] +layout_mode = 2 +size_flags_horizontal = 3 +focus_neighbor_left = NodePath("../OptionsButton") +focus_neighbor_right = NodePath("../ExitButton") +focus_next = NodePath("../ExitButton") +focus_previous = NodePath("../OptionsButton") +theme_type_variation = &"Button_MainMenu" +text = "Credits" +clip_text = true + [node name="ExitButton" type="Button" parent="Panel/VBox/Margin/ButtonList"] layout_mode = 2 size_flags_horizontal = 3 @@ -137,4 +148,5 @@ text = "(0000)" [connection signal="pressed" from="Panel/VBox/Margin/ButtonList/ContinueButton" to="." method="_on_continue_button_pressed"] [connection signal="pressed" from="Panel/VBox/Margin/ButtonList/MultiplayerButton" to="." method="_on_multi_player_button_pressed"] [connection signal="pressed" from="Panel/VBox/Margin/ButtonList/OptionsButton" to="." method="_on_options_button_pressed"] +[connection signal="pressed" from="Panel/VBox/Margin/ButtonList/CreditsButton" to="." method="_on_credits_button_pressed"] [connection signal="pressed" from="Panel/VBox/Margin/ButtonList/ExitButton" to="." method="_on_exit_button_pressed"] |