diary/user_interface/settings_menu/settings_menu.gd

21 lines
389 B
GDScript3
Raw Normal View History

2022-06-05 14:22:08 +02:00
extends Control
func _ready():
# warning-ignore:return_value_discarded
Settings.connect("settings_menu_requested", self, "_on_requested")
func _on_requested():
visible = true
func _on_ColorRect_gui_input(event):
if event is InputEventMouseButton:
if event.button_index == BUTTON_LEFT and event.is_pressed():
visible = false
func _on_CloseButton_pressed():
visible = false