test-client-godot/gui_scene/GUI/HUD/dialogue_bubble.gd
2019-03-12 15:29:32 +01:00

12 lines
No EOL
301 B
GDScript

extends Control
func set_text( text ):
$dialogue_box/bubble_box/text_box/lines_box/text.text = text
func add_answer( text ):
var line_box = $dialogue_box/bubble_box/text_box/lines_box
var new_label = Label.new()
new_label.text = text
line_box.add_child( new_label )