a game about throwing hammers made for the github game off
Diffstat (limited to 'ui/popup.gd')
-rw-r--r--ui/popup.gd20
1 files changed, 10 insertions, 10 deletions
diff --git a/ui/popup.gd b/ui/popup.gd
index 5620f27..165bfa7 100644
--- a/ui/popup.gd
+++ b/ui/popup.gd
@@ -8,17 +8,17 @@ signal close
@export var focus: Control
func open() -> void:
- show()
- if focus is RemapButton:
- focus.button.grab_focus()
- else:
- focus.grab_focus()
+ show()
+ if focus is RemapButton:
+ focus.button.grab_focus()
+ else:
+ focus.grab_focus()
func _unhandled_input(event: InputEvent) -> void:
- if visible and event.is_action("ui_cancel"):
- accept_event()
- exit()
+ if visible and event.is_action("ui_cancel"):
+ accept_event()
+ exit()
func exit() -> void:
- close.emit()
- hide()
+ close.emit()
+ hide()