23 lines
535 B
GDScript
23 lines
535 B
GDScript
extends Control
|
|
|
|
@onready var main : Main = $/root/Main
|
|
|
|
## Previous Code IDC about reading
|
|
#var settingsmenu : bool = false
|
|
#
|
|
#func _process(_delta: float) -> void:
|
|
#if Input.is_action_just_pressed("settings") and %Pausemenu.visible:
|
|
#if not %Settingsmenu.visible:
|
|
#%Settingsmenu.show()
|
|
#%Settingsmenu.grab_focus()
|
|
#else:
|
|
#%Settingsmenu.hide()
|
|
#%Pausemenu.grab_focus()
|
|
#settingsmenu = !settingsmenu
|
|
|
|
func _on_leave_pressed() -> void:
|
|
main.on_settings_pressed()
|
|
|
|
func _on_quit_pressed() -> void:
|
|
get_tree().quit()
|