diary/user_interface/utility_controls/line_separator.gd

25 lines
406 B
GDScript3
Raw Normal View History

2022-06-05 14:22:08 +02:00
tool
extends HBoxContainer
export(String) var tag setget _set_tag
onready var separation_tag = get_node("SeparationTag")
func _ready():
_set_separation_tag_text(tag)
func _set_tag(value):
tag = value
if not separation_tag:
return
_set_separation_tag_text(value)
func _set_separation_tag_text(text):
if text != "":
separation_tag.text = text
else:
separation_tag.text = "Separation Tag"