1 @icon("node_name_label_icon.svg")
4 class_name DialogicNode_NameLabel
6 # If true, the label will be hidden if no character speaks.
7 @export var hide_when_empty := true
8 @export var name_label_root: Node = self
9 @export var use_character_color := true
11 func _ready() -> void:
12 add_to_group('dialogic_name_label')
14 name_label_root.visible = false
18 func _set(property, what):
19 if property == 'text' and typeof(what) == TYPE_STRING:
22 name_label_root.visible = !what.is_empty()
24 name_label_root.show()