summaryrefslogtreecommitdiff
path: root/ui/servermenu/Console.gd
blob: ac73525d6847725fa95f1858da20cb199f49a635 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)