diff --git a/scenes/managers/ui/debug_ui.gd b/scenes/managers/ui/debug_ui.gd index 4e2cb8d..82b5f6b 100644 --- a/scenes/managers/ui/debug_ui.gd +++ b/scenes/managers/ui/debug_ui.gd @@ -3,6 +3,7 @@ extends Control @onready var stats_container: PanelContainer = $StatsContainer @onready var panel_container: PanelContainer = $PanelContainer +@onready var stats_container_vbox: VBoxContainer = $StatsContainer/VBoxContainer var debug_stats: Dictionary = {} @@ -41,7 +42,7 @@ func set_debug_stat(key: String, value: String): func update_debug_stats() -> void: - for child in stats_container.get_children(): + for child in stats_container_vbox.get_children(): child.queue_free() for stat in debug_stats: # Create margin container @@ -50,7 +51,7 @@ func update_debug_stats() -> void: mc.add_theme_constant_override("margin_left", 20) mc.add_theme_constant_override("margin_bottom", 10) mc.add_theme_constant_override("margin_right", 20) - stats_container.add_child(mc) + stats_container_vbox.add_child(mc) # Create the grid container var gc: GridContainer = GridContainer.new()