Fix main menu focus
This commit is contained in:
1 parent
27d056fafa
commit
bfd455341d
3 files changed
+7
-2
No files matched your search
@@ -41,7 +41,7 @@ func _unhandled_input(event:InputEvent) -> void:
|
||||
if event.is_action_pressed("menu"):
|
||||
if visible:
|
||||
close()
|
||||
elif !UI.dialogueActive:
|
||||
elif !UI.dialogueActive and SCENE.currentScene == SceneSingleton.SceneType.OVERWORLD:
|
||||
open()
|
||||
get_viewport().set_input_as_handled()
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user