forked from team-sg/hero-mark-2
fixed some menu bugs
This commit is contained in:
parent
906e43df66
commit
e8ec987c6a
2 changed files with 16 additions and 8 deletions
|
@ -12,4 +12,12 @@ func _process(delta):
|
|||
|
||||
func _gui_input(event):
|
||||
if event.is_action_pressed("ui_accept"):
|
||||
Fade.fade_out(Options.transition_speed_secs)
|
||||
yield(Fade, "fade_finished")
|
||||
SceneManager.current_scene = next_scene.instance()
|
||||
|
||||
func _input(event):
|
||||
if event.is_action_pressed("ui_cancel"):
|
||||
Fade.fade_out(Options.transition_speed_secs)
|
||||
yield(Fade, "fade_finished")
|
||||
SceneManager.current_scene = next_scene.instance()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue