diff options
author | nuruvilu <75346368+nuruvilu@users.noreply.github.com> | 2023-02-27 13:10:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-27 13:10:17 +0100 |
commit | bf2ce936c870f4c8d3aafba1b074eb643bcb536c (patch) | |
tree | c8541f84a3698dcb9102a9c0160e285fa9261c8c /game/src/MainMenu/MainMenu.gd | |
parent | e637c3afe2854488d1c2e755e0272f431105c404 (diff) |
Add skeleton for Game Lobby Menu (#26)
Diffstat (limited to 'game/src/MainMenu/MainMenu.gd')
-rw-r--r-- | game/src/MainMenu/MainMenu.gd | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/game/src/MainMenu/MainMenu.gd b/game/src/MainMenu/MainMenu.gd index 0a551e0..7cd02cf 100644 --- a/game/src/MainMenu/MainMenu.gd +++ b/game/src/MainMenu/MainMenu.gd @@ -1,6 +1,7 @@ extends Control signal options_button_pressed +signal new_game_button_pressed @export var _new_game_button : BaseButton @@ -17,10 +18,12 @@ func _ready(): _new_game_button.grab_focus() +# REQUIREMENTS: +# * UIFUN-32 func _on_new_game_button_pressed(): SFX.play("click") print("Start a new game!") - get_tree().change_scene_to_file("res://src/SampleGame.tscn") + new_game_button_pressed.emit() func _on_continue_button_pressed(): |