aboutsummaryrefslogtreecommitdiff
path: root/game/src/GameSession/GameSession.gd
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-03-22 17:56:24 +0100
committer GitHub <noreply@github.com>2023-03-22 17:56:24 +0100
commiteb87e2af53bd693e04739aaee84fde408e72f3a9 (patch)
treedf2d5211157f9222c3c7fc21888bea08411c8c9b /game/src/GameSession/GameSession.gd
parent540dddf46e80a91c77e465cbf6fdb81dd9977057 (diff)
Basic Game Session skeleton (#67)
* Fixed grab_focus error on not is_inside_tree * Moved SampleGame to GameSession/GameSession * Basic GameSession and GameSessionMenu/Escape Menu * Map Control Panel skeleton * Added requirement comments * Removed unnecessary CenterContainer
Diffstat (limited to 'game/src/GameSession/GameSession.gd')
-rw-r--r--game/src/GameSession/GameSession.gd16
1 files changed, 16 insertions, 0 deletions
diff --git a/game/src/GameSession/GameSession.gd b/game/src/GameSession/GameSession.gd
new file mode 100644
index 0000000..0d69bf2
--- /dev/null
+++ b/game/src/GameSession/GameSession.gd
@@ -0,0 +1,16 @@
+extends Control
+
+@export var _game_session_menu : Control
+
+func _ready():
+ print("GameSession ready")
+
+# REQUIREMENTS:
+# * SS-42
+func _on_game_session_menu_button_pressed():
+ _game_session_menu.visible = !_game_session_menu.visible
+
+# REQUIREMENTS:
+# * SS-64
+func _on_game_session_menu_close_button_pressed():
+ _game_session_menu.hide()