when you quit the game, it basically crashes and the audio lags for now. changable audio is still not fixed, the child spatial_audio3d still plays too loud.
27 lines
680 B
GDScript
27 lines
680 B
GDScript
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("res://maps/procedural_map_parts_ver_premade/map_generator.tscn")
|
|
|
|
func _on_button_2_pressed() -> void:
|
|
UiManager.toggle_self()
|
|
get_tree().change_scene_to_file("res://maps/dev/dev_map.tscn")
|
|
|
|
func _on_button_3_pressed() -> void:
|
|
print("options")
|
|
|
|
|
|
func _on_button_4_pressed() -> void:
|
|
print("exit")
|
|
get_tree().quit()
|