diff options
author | George L. Albany <Megacake1234@gmail.com> | 2023-02-12 16:09:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-12 16:09:17 +0100 |
commit | c0d8a4ac3723021c95da9674c3bc0eea511ee3a0 (patch) | |
tree | 4ca4a0835cb833fbba1983f0e8de5fa66227b86e /game/src/MainMenu.gd | |
parent | 537938683b748dbf5fcd78276aa823f168f715f1 (diff) | |
parent | 3798205c740e7e2faf2594866cb497260012508c (diff) |
Merge pull request #7 from Spartan322/feature/usable-ui
Diffstat (limited to 'game/src/MainMenu.gd')
-rw-r--r-- | game/src/MainMenu.gd | 12 |
1 files changed, 3 insertions, 9 deletions
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(): |