Add addons
This commit is contained in:
parent
2c862b2235
commit
3367bad24f
527 changed files with 36197 additions and 0 deletions
19
Sprout/addons/dialogic/Events/Text/node_name_label.gd
Normal file
19
Sprout/addons/dialogic/Events/Text/node_name_label.gd
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
extends Label
|
||||
|
||||
class_name DialogicNode_NameLabel
|
||||
|
||||
# If true, the label will be hidden if no character speaks.
|
||||
@export var hide_when_empty := true
|
||||
|
||||
@export var use_character_color := true
|
||||
|
||||
func _ready():
|
||||
add_to_group('dialogic_name_label')
|
||||
text = ""
|
||||
|
||||
func _set(property, what):
|
||||
if property == 'text' and typeof(what) == TYPE_STRING:
|
||||
text = what
|
||||
if hide_when_empty:
|
||||
visible = !what.is_empty()
|
||||
return true
|
||||
Loading…
Add table
Add a link
Reference in a new issue