Add addons

This commit is contained in:
Joey Yakimowich-Payne 2023-01-03 16:53:53 -07:00
commit 3367bad24f
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1
527 changed files with 36197 additions and 0 deletions

View 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