@tool extends HBoxContainer class_name CardStat var is_ready = false @export var info : CardStatInfo = CardStatInfo.new() : set(v): info = v if is_ready : update() @export_tool_button("Update", "Callable") var update_action = update func _ready(): is_ready = true update() func update(): %RichTextLabel.text = info.text %TextureRect.texture = info.icon