2023-12-01 22:26:46 -08:00
|
|
|
extends PanelContainer
|
|
|
|
|
|
|
|
|
|
|
|
func _process(delta):
|
|
|
|
if visible:
|
|
|
|
pass
|
|
|
|
|
2024-01-09 13:57:39 -08:00
|
|
|
func add_property(title : String, value, order : int):
|
2023-12-01 22:26:46 -08:00
|
|
|
var target
|
|
|
|
target = $MarginContainer/VBoxContainer.find_child(title, true, false)
|
|
|
|
if !target:
|
|
|
|
target = Label.new()
|
|
|
|
$MarginContainer/VBoxContainer.add_child(target)
|
|
|
|
target.name = title
|
|
|
|
target.text = title + ": " + str(value)
|
|
|
|
elif visible:
|
|
|
|
target.text = title + ": " + str(value)
|
|
|
|
$MarginContainer/VBoxContainer.move_child(target, order)
|