2021-09-17 15:04:05 +02:00
|
|
|
extends BaseUI
|
|
|
|
|
2021-09-22 18:04:03 +02:00
|
|
|
onready var options_menu = preload("res://ui/menus/options_menu.tscn").instance()
|
2021-09-17 15:04:05 +02:00
|
|
|
|
|
|
|
func _ready():
|
|
|
|
options_menu.called_ui = self
|
|
|
|
|
|
|
|
func _on_Start_pressed():
|
|
|
|
get_tree().change_scene("res://scenes/playground.tscn")
|
|
|
|
|
|
|
|
func _on_Quit_pressed():
|
|
|
|
get_tree().quit()
|
|
|
|
|
|
|
|
func _on_Options_pressed():
|
|
|
|
get_parent().add_child(options_menu)
|
|
|
|
get_parent().remove_child(self)
|