From eb87e2af53bd693e04739aaee84fde408e72f3a9 Mon Sep 17 00:00:00 2001 From: Hop311 Date: Wed, 22 Mar 2023 16:56:24 +0000 Subject: 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 --- game/src/GameSession/GameSession.gd | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 game/src/GameSession/GameSession.gd (limited to 'game/src/GameSession/GameSession.gd') 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() -- cgit v1.2.3-56-ga3b1