From 3798205c740e7e2faf2594866cb497260012508c Mon Sep 17 00:00:00 2001 From: Spartan322 Date: Fri, 10 Feb 2023 04:18:46 -0500 Subject: Implement a usable settings UI, should fulfill: SS-58, SS-61, SS-6, SS-9, SS-10, SS-11, SS-13 UI-11, UI-12, UI-19, UI-44, UI-47, UI-22 --- game/src/MainMenu.gd | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'game/src/MainMenu.gd') diff --git a/game/src/MainMenu.gd b/game/src/MainMenu.gd index a9cdf10..a5c6198 100644 --- a/game/src/MainMenu.gd +++ b/game/src/MainMenu.gd @@ -1,17 +1,11 @@ extends Control +signal options_button_pressed -# Called when the node enters the scene tree for the first time. func _ready(): print("From GDScript") TestSingleton.hello_singleton() - $CenterContainer/VBoxContainer/NewGameButton.grab_focus() - pass # Replace with function body. - - -## Called every frame. 'delta' is the elapsed time since the previous frame. -#func _process(delta): -# pass + $VBox/Center/VBox/NewGameButton.grab_focus() func _on_new_game_button_pressed(): @@ -28,7 +22,7 @@ func _on_multi_player_button_pressed(): func _on_options_button_pressed(): print("Check out some options!") - get_tree().change_scene_to_file("res://src/OptionsMenu.tscn") + options_button_pressed.emit() func _on_exit_button_pressed(): -- cgit v1.2.3-56-ga3b1