1
0
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:
2021-10-21 05:22:42 -05:00
parent f74ad64865
commit 7f0b58de70
13 changed files with 1454 additions and 81 deletions

View File

@@ -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):

View File

@@ -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()