godot-steering-ai-framework/project/demos/Utils/DemoInterface.gd
Nathan Lovato 6132a0aa25 Refactor the demos to support screen resizing
Add BackgroudLayer and DemoInterface scenes that we can reuse across demos
Set the game to 2D and extend window modes

Part of #21
2020-02-08 15:40:43 -06:00

16 lines
365 B
GDScript

tool
extends PanelContainer
export(String, MULTILINE) var text_bbcode := "" setget set_text_bbcode
onready var rich_text_label: RichTextLabel = $MarginContainer/RichTextLabel
func set_text_bbcode(value: String)-> void:
text_bbcode = value
if not rich_text_label:
yield(self, "ready")
rich_text_label.bbcode_text = text_bbcode
print(rich_text_label.text)