CDN Integration Mobs

This commit is contained in:
dingo
2025-12-20 16:42:19 -05:00
parent 9d990b8c18
commit 7c29268fa4
13 changed files with 1414 additions and 51 deletions
+7 -3
View File
@@ -254,6 +254,10 @@ func add_log_entry(text: String, color: Color):
label.queue_free()
)
# Keep log from getting too long
while event_log.get_child_count() > 10:
event_log.get_child(0).queue_free()
# Keep log from getting too long (use call_deferred to avoid modifying during iteration)
if event_log.get_child_count() > 10:
var to_remove = event_log.get_child_count() - 10
for i in range(to_remove):
var child = event_log.get_child(0)
if is_instance_valid(child):
child.queue_free()