1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-10 21:57:12 +08:00

fix(UI): 修正能量显示格式和动画问题

修复能量标签显示格式从"%.1f"改为"%.2f"
调整BigLaser能量消耗从50改为100
修复ItemShow动画资源顺序错误问题
添加autoFree属性到UI场景中的物品节点
修改FieldShow默认文本从"+0"改为"0"
This commit is contained in:
2025-08-28 07:01:18 +08:00
parent 71a77dbdca
commit 8e4b560e82
6 changed files with 33 additions and 29 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ func _process(_delta):
bossbar.visible = !!bossbar.entity
func _physics_process(_delta):
if is_instance_valid(player):
energyLabel.text = "%.1f" % player.energy
energyLabel.text = "%.2f" % player.energy
energyMaxLabel.text = "%.1f" % player.fields.get(FieldStore.Entity.MAX_ENERGY)
for i in items.get_children():
var item = i as ItemShow