diff options
Diffstat (limited to 'scripts/optionsmenu.gd')
-rw-r--r-- | scripts/optionsmenu.gd | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/optionsmenu.gd b/scripts/optionsmenu.gd index 6fb9aa8..67e73c8 100644 --- a/scripts/optionsmenu.gd +++ b/scripts/optionsmenu.gd @@ -10,6 +10,10 @@ func _ready(): $Control/VBoxContainer/GridContainer/VolumeSFXContainer/VolumeSFXSlider.value = global_variables.volume_sfx $Control/VBoxContainer/GridContainer/FullscreenCheckButton.set_pressed_no_signal(OS.window_fullscreen) +func _input(event): + if event.is_action_pressed("escape"): + queue_free() + func _on_ReturnButton_pressed(): queue_free() |