extends ScrollContainer # Called when the node enters the scene tree for the first time. func _ready(): pass func add_line(text): var lbl = Label.new() lbl.autowrap = true lbl.text = text text = "" $ConsoleLines.add_child(lbl) yield(get_tree().create_timer(0.05), "timeout") ensure_control_visible(lbl)