aboutsummaryrefslogtreecommitdiff
path: root/game/src/MainMenu/MainMenu.gd
diff options
context:
space:
mode:
author ClarkeCode <33846391+ClarkeCode@users.noreply.github.com>2023-03-04 19:46:42 +0100
committer GitHub <noreply@github.com>2023-03-04 19:46:42 +0100
commit028247a24866726b79c56cb2f266738a8a9abc70 (patch)
tree0807714d81b61002b4613dfa0c10aa7b1209eac6 /game/src/MainMenu/MainMenu.gd
parent2f4842769b0856bc08a256907b64046fb55381ac (diff)
parent3e088a2642d2d05eed011b2dd1bdee566225719f (diff)
Merge pull request #55 from Hop311/req-comments
Comments marking implemented requirements
Diffstat (limited to 'game/src/MainMenu/MainMenu.gd')
-rw-r--r--game/src/MainMenu/MainMenu.gd15
1 files changed, 11 insertions, 4 deletions
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()