mirror of
https://github.com/JohnBreaux/Boat-Battle.git
synced 2025-02-04 12:28:35 +00:00
Radical debug menu overhaul + Options overhaul
This commit is contained in:
@@ -8,8 +8,7 @@ extends Control
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
grab_focus()
|
||||
pass # Replace with function body.
|
||||
if find_next_valid_focus(): find_next_valid_focus().grab_focus()
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
#func _process(delta):
|
||||
|
||||
@@ -58,13 +58,10 @@ func _on_scene_start_by_name(scene):
|
||||
|
||||
# Kills all child nodes with name matching `scene`
|
||||
func _on_scene_kill(scene):
|
||||
var c = get_children()
|
||||
for i in range (c.size()):
|
||||
if c[i].name == scene:
|
||||
c[i].queue_free()
|
||||
MessageBus.emit_signal("print_console", String(c[i].name) + " killed.\n".c_unescape())
|
||||
return true
|
||||
return false
|
||||
var node = find_node(scene, false, false)
|
||||
if node :
|
||||
node.queue_free()
|
||||
MessageBus.emit_signal("print_console", String(node.name) + " killed.\n".c_unescape())
|
||||
|
||||
func _on_scene_list():
|
||||
var children = get_children()
|
||||
|
||||
Reference in New Issue
Block a user