From 3e088a2642d2d05eed011b2dd1bdee566225719f Mon Sep 17 00:00:00 2001 From: Hop311 Date: Sat, 4 Mar 2023 18:06:05 +0000 Subject: Comments marking implemeneted requirements --- game/src/MainMenu/MainMenu.gd | 15 +++++++++++---- game/src/MainMenu/MainMenu.tscn | 8 ++++++++ 2 files changed, 19 insertions(+), 4 deletions(-) (limited to 'game/src/MainMenu') diff --git a/game/src/MainMenu/MainMenu.gd b/game/src/MainMenu/MainMenu.gd index 4ffa3b0..7e790c0 100644 --- a/game/src/MainMenu/MainMenu.gd +++ b/game/src/MainMenu/MainMenu.gd @@ -10,16 +10,21 @@ var _new_game_button : BaseButton @export var _checksum_label : Label +# REQUIREMENTS: +# * SS-3 +# * UIFUN-97 func _ready(): print("From GDScript") TestSingleton.hello_singleton() - # UI-111 - _checksum_label.tooltip_text = "Checksum " + Checksum.get_checksum_text() - _checksum_label.text = "(" + Checksum.get_checksum_text().substr(0, 4) + ")" + # UIFUN-97 + var checksum := Checksum.get_checksum_text() + _checksum_label.tooltip_text = "Checksum " + checksum + _checksum_label.text = "(" + checksum.substr(0, 4) + ")" _new_game_button.grab_focus() # REQUIREMENTS: +# * SS-14 # * UIFUN-32 func _on_new_game_button_pressed(): print("Start a new game!") @@ -44,7 +49,9 @@ func _on_options_button_pressed(): func _on_credits_button_pressed(): credits_button_pressed.emit() - +# REQUIREMENTS +# * SS-4 +# * UIFUN-3 func _on_exit_button_pressed(): print("See you later!") get_tree().quit() diff --git a/game/src/MainMenu/MainMenu.tscn b/game/src/MainMenu/MainMenu.tscn index bf5bfe6..af2d975 100644 --- a/game/src/MainMenu/MainMenu.tscn +++ b/game/src/MainMenu/MainMenu.tscn @@ -4,6 +4,7 @@ [ext_resource type="Script" path="res://src/MainMenu/MainMenu.gd" id="2_nm1fq"] [node name="MainMenu" type="Control" node_paths=PackedStringArray("_new_game_button", "_checksum_label")] +editor_description = "UI-13" layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 @@ -49,6 +50,7 @@ theme_override_constants/separation = 18 alignment = 1 [node name="NewGameButton" type="Button" parent="Panel/VBox/Margin/ButtonList" node_paths=PackedStringArray("shortcut_context")] +editor_description = "UI-26" layout_mode = 2 size_flags_horizontal = 3 focus_neighbor_left = NodePath("../ExitButton") @@ -74,6 +76,7 @@ text = "Continue" clip_text = true [node name="MultiplayerButton" type="Button" parent="Panel/VBox/Margin/ButtonList"] +editor_description = "UI-27" layout_mode = 2 size_flags_horizontal = 3 focus_neighbor_left = NodePath("../ContinueButton") @@ -85,6 +88,7 @@ text = "Multiplayer" clip_text = true [node name="OptionsButton" type="Button" parent="Panel/VBox/Margin/ButtonList"] +editor_description = "UI-5" layout_mode = 2 size_flags_horizontal = 3 focus_neighbor_left = NodePath("../MultiplayerButton") @@ -96,6 +100,7 @@ text = "Options" clip_text = true [node name="CreditsButton" type="Button" parent="Panel/VBox/Margin/ButtonList"] +editor_description = "UI-32" layout_mode = 2 size_flags_horizontal = 3 focus_neighbor_left = NodePath("../OptionsButton") @@ -107,6 +112,7 @@ text = "Credits" clip_text = true [node name="ExitButton" type="Button" parent="Panel/VBox/Margin/ButtonList"] +editor_description = "UI-3" layout_mode = 2 size_flags_horizontal = 3 focus_neighbor_left = NodePath("../OptionsButton") @@ -129,6 +135,7 @@ theme_override_constants/margin_right = 50 theme_override_constants/margin_bottom = 10 [node name="VersionChecksumBox" type="HBoxContainer" parent="Panel/VBox/Margin2"] +editor_description = "UI-31" layout_mode = 2 [node name="VersionLabel" type="Label" parent="Panel/VBox/Margin2/VersionChecksumBox"] @@ -138,6 +145,7 @@ mouse_filter = 1 text = "v0.01" [node name="ChecksumLabel" type="Label" parent="Panel/VBox/Margin2/VersionChecksumBox"] +editor_description = "UI-111" layout_mode = 2 tooltip_text = "Checksum 00000000" mouse_filter = 1 -- cgit v1.2.3-56-ga3b1