21 lines
389 B
GDScript3
21 lines
389 B
GDScript3
|
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
|