1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-02 09:21:54 +08:00

feat(游戏结束): 添加子弹显示名称并改进死亡信息显示

- 为所有子弹类型添加displayName属性用于显示
- 修改GameOver面板显示死亡原因,包含子弹名称和发射者
- 更新死亡原因文本格式为富文本样式
- 移除GameOver面板中多余的LabelSettings资源
This commit is contained in:
2025-09-13 20:52:19 +08:00
parent 3c1f89f807
commit 08f3067c7f
14 changed files with 155 additions and 149 deletions
+1 -2
View File
@@ -290,7 +290,7 @@ func tryDie(by: BulletBase):
)
if isPlayer():
if UIState.player == self:
UIState.setPanel("GameOver", [displayName, by.launcher.displayName])
UIState.setPanel("GameOver", [displayName, by.launcher.displayName, by.displayName])
EffectController.create(preload("res://components/Effects/DeadBlood.tscn"), texture.global_position).shot()
await die()
func tryHeal(count: float):
@@ -299,7 +299,6 @@ func tryHeal(count: float):
playSound("heal")
healed.emit(heal(count * fields.get(FieldStore.Entity.HEAL_ABILITY)))
healthChanged.emit(health)
func findWeaponAnchor(weaponName: String):
var anchor = $"%weapons".get_node_or_null(weaponName)
if anchor is Node2D: