Updated UI
This commit is contained in:
12
client/ui/label/NameLabel.gd
Normal file
12
client/ui/label/NameLabel.gd
Normal file
@ -0,0 +1,12 @@
|
||||
@tool
|
||||
extends Label
|
||||
|
||||
func _ready():
|
||||
update_text()
|
||||
|
||||
func update_text():
|
||||
text = name + ":"
|
||||
|
||||
func _get_configuration_warnings() -> PackedStringArray:
|
||||
update_text()
|
||||
return []
|
12
client/ui/label/ParentNameLabel.gd
Normal file
12
client/ui/label/ParentNameLabel.gd
Normal file
@ -0,0 +1,12 @@
|
||||
@tool
|
||||
extends Label
|
||||
|
||||
func _ready():
|
||||
update_text()
|
||||
|
||||
func update_text():
|
||||
text = get_parent().name + ":"
|
||||
|
||||
func _get_configuration_warnings() -> PackedStringArray:
|
||||
update_text()
|
||||
return []
|
Reference in New Issue
Block a user