mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-04 18:57:13 +08:00
13 lines
308 B
GDScript
13 lines
308 B
GDScript
|
|
@tool
|
||
|
|
extends HBoxContainer
|
||
|
|
|
||
|
|
@export var field: FieldStore.Entity = FieldStore.Entity.MAX_HEALTH
|
||
|
|
@export var value: String = ""
|
||
|
|
|
||
|
|
@onready var nameLabel: Label = $"%name"
|
||
|
|
@onready var valueLabel: Label = $"%value"
|
||
|
|
|
||
|
|
func _process(_delta):
|
||
|
|
nameLabel.text = FieldStore.entityMap[field]
|
||
|
|
valueLabel.text = value
|