This repository has been archived on 2022-01-09. You can view files and clone it, but cannot push or open issues/pull-requests.
liblast/Game/Assets/UI/MenuItem.gd

17 lines
264 B
GDScript
Raw Normal View History

2021-09-25 00:07:15 +02:00
@tool
2021-06-02 17:00:28 +02:00
extends Control
@export var label = "":
set(_label):
label = _label
on_label_changed()
get:
return label
func on_label_changed():
2021-09-25 00:07:15 +02:00
self.text=label
2021-06-02 17:00:28 +02:00
# Called when the node enters the scene tree for the first time.
func _ready():
2021-09-25 00:07:15 +02:00
on_label_changed()