1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00

feat(UI): 添加显示实体属性的面板和动画效果

添加新的输入动作"showFields"用于显示/隐藏实体属性面板
创建新的FieldShow组件用于显示实体属性值
为属性面板添加显示/隐藏动画效果
调整EntityBase中属性初始化的顺序
This commit is contained in:
2025-08-28 13:58:31 +08:00
parent 62aa9995a9
commit aa533509a5
7 changed files with 194 additions and 31 deletions
+3 -3
View File
@@ -73,9 +73,6 @@ func _ready():
else:
statebar = selfStatebar
statebar.entity = self
applyLevel()
health = fields.get(FieldStore.Entity.MAX_HEALTH)
energy = fields.get(FieldStore.Entity.MAX_ENERGY) * 0.5
if isPlayer():
statebar.levelLabels.hide()
UIState.player = self
@@ -99,6 +96,9 @@ func _ready():
)
else:
currentFocusedBoss = get_tree().get_nodes_in_group("players")[0]
applyLevel()
health = fields.get(FieldStore.Entity.MAX_HEALTH)
energy = fields.get(FieldStore.Entity.MAX_ENERGY) * 0.5
healthChanged.connect(
func(newHealth):
if is_instance_valid(statebar):