From bf2ce936c870f4c8d3aafba1b074eb643bcb536c Mon Sep 17 00:00:00 2001 From: nuruvilu <75346368+nuruvilu@users.noreply.github.com> Date: Mon, 27 Feb 2023 06:10:17 -0600 Subject: Add skeleton for Game Lobby Menu (#26) --- game/src/MainMenu/MainMenu.gd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'game/src/MainMenu/MainMenu.gd') 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(): -- cgit v1.2.3-56-ga3b1