Reworked main menu. Fixed projectiles bug
This commit is contained in:
+9
-1
@@ -1,4 +1,4 @@
|
||||
extends Node
|
||||
extends Control
|
||||
|
||||
|
||||
signal continue_game
|
||||
@@ -17,6 +17,14 @@ func _ready() -> void:
|
||||
_setup_neighbors()
|
||||
|
||||
|
||||
func _on_visibility_changed() -> void:
|
||||
if not is_node_ready(): return
|
||||
if not visible: return
|
||||
|
||||
_init_focus()
|
||||
_setup_neighbors()
|
||||
|
||||
|
||||
func _init_focus() -> void:
|
||||
if continue_button.disabled:
|
||||
start_button.grab_focus()
|
||||
|
||||
Reference in New Issue
Block a user