breadwinner/scenes/main_menu/main_menu_control.gd

28 lines
629 B
GDScript3
Raw Normal View History

extends Control
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _on_button_pressed() -> void:
UiManager.toggle_self()
get_tree().change_scene_to_file("uid://c5p2fbgi8co1c")
func _on_button_2_pressed() -> void:
UiManager.toggle_self()
get_tree().change_scene_to_file("uid://chykk2a3opu0d")
func _on_button_3_pressed() -> void:
print("options")
func _on_button_4_pressed() -> void:
print("exit")
get_tree().quit()