fix fullscreen buggy :3
This commit is contained in:
parent
7020914046
commit
e85c09a6a4
4 changed files with 15 additions and 17 deletions
|
@ -69,17 +69,19 @@ func _gui_input(event):
|
|||
current_tab.get_node(current_tab.focus_neighbour_bottom).grab_focus()
|
||||
accept_event()
|
||||
|
||||
func _physics_process(delta):
|
||||
if Input.is_action_just_pressed("ui_accept"):
|
||||
func _unhandled_input(event):
|
||||
if !has_focus():
|
||||
return
|
||||
if event.is_action_pressed("ui_accept"):
|
||||
apply_options()
|
||||
dirty = false
|
||||
elif Input.is_action_just_pressed("ui_cancel"):
|
||||
elif event.is_action_pressed("ui_cancel"):
|
||||
if dirty:
|
||||
confirm_dialog.visible = true
|
||||
confirm_dialog.grab_focus()
|
||||
else:
|
||||
emit_signal("exit")
|
||||
elif Input.is_action_just_pressed("ui_reset"):
|
||||
elif event.is_action_pressed("ui_reset"):
|
||||
load_options(Options.defaults)
|
||||
dirty = true
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue