meat_madness_redux/godot/addons/dialogic/Editor/Common/TLabel.gd

12 lines
258 B
GDScript3
Raw Normal View History

2022-11-27 13:31:09 -07:00
tool
extends Label
export var text_key : String = ""
var editor_reference
func set_text_from_key(value):
text = editor_reference.dialogicTranslator.translate(value)
func _ready():
editor_reference = find_parent('EditorView')
set_text_from_key(text_key)