aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GameSession/GameSessionMenu.gd
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2023-12-19 00:38:54 +0100
committer hop311 <hop3114@gmail.com>2023-12-25 19:06:13 +0100
commit4e9764ee29fb7b453862835d5aa3a081b0f9a269 (patch)
treea59c5b960a706a383b8ebd1dbcfb704067a5b51b /game/src/Game/GameSession/GameSessionMenu.gd
parentd26c990d9a5596a3ef3b32ba1cb0f99950cd6d34 (diff)
Back to UI Work
- UIAdapter -> UITools with cleaner API - GUIOverlappingElementsBox (for core and modifier icons) - Improved GUINode API - Province building slots - TypeHints for files in the GameSession folder - Incorporate SIM strong colour types
Diffstat (limited to 'game/src/Game/GameSession/GameSessionMenu.gd')
-rw-r--r--game/src/Game/GameSession/GameSessionMenu.gd6
1 files changed, 3 insertions, 3 deletions
diff --git a/game/src/Game/GameSession/GameSessionMenu.gd b/game/src/Game/GameSession/GameSessionMenu.gd
index 23ef2ef..7db0572 100644
--- a/game/src/Game/GameSession/GameSessionMenu.gd
+++ b/game/src/Game/GameSession/GameSessionMenu.gd
@@ -63,7 +63,7 @@ func _on_quit_confirmed() -> void:
func _on_options_button_pressed() -> void:
options_button_pressed.emit()
-func _on_main_menu_dialog_custom_action(action) -> void:
+func _on_main_menu_dialog_custom_action(action : StringName) -> void:
match action:
&"save_and_main_menu":
_on_main_menu_confirmed()
@@ -73,8 +73,8 @@ func _on_quit_dialog_custom_action(action : StringName) -> void:
&"save_and_quit":
_on_quit_confirmed()
-func _on_save_button_pressed():
+func _on_save_button_pressed() -> void:
save_button_pressed.emit()
-func _on_load_button_pressed():
+func _on_load_button_pressed() -> void:
load_button_pressed.emit()