Fix main menu focus
This commit is contained in:
1 parent
27d056fafa
commit
bfd455341d
3 files changed
+7
-2
No files matched your search
@@ -12,7 +12,10 @@ func _ready() -> void:
|
||||
btnQuit.pressed.connect(_onQuitPressed)
|
||||
settingsMenu.opened.connect(_onSettingsOpened)
|
||||
settingsMenu.closed.connect(_onSettingsClosed)
|
||||
btnNewGame.grab_focus()
|
||||
|
||||
func _notification(what:int) -> void:
|
||||
if what == NOTIFICATION_ENTER_TREE:
|
||||
btnNewGame.call_deferred("grab_focus")
|
||||
|
||||
func _onSettingsOpened() -> void:
|
||||
# Move focus into the settings panel so the controller can navigate it.
|
||||
|
||||
Reference in new issue
Block a user