feat(技能提示): 添加MP恢复提示功能

添加MP恢复提示类型到TooltipTypes枚举
在TooltipCom组件中实现MP恢复提示的显示逻辑
更新tooltip.prefab结构以支持MP恢复提示
移除未使用的tooltip.prefab.meta文件
移除英雄prefab中的tooltip 说话节点
This commit is contained in:
2025-11-26 10:07:21 +08:00
parent b965c88961
commit 9c33bb0f7b
17 changed files with 692 additions and 2461 deletions

View File

@@ -295,7 +295,12 @@ export class HeroViewComp extends CCComp {
this.hp_tip(TooltipTypes.health, hp.toFixed(0));
this.top_node.active=true
this.hp_show(this.model.hp, this.model.Attrs[Attrs.HP_MAX]);
}
mp(mp: number = 0) {
// 生命值更新由 Model 层处理,这里只负责视图表现
this.hp_tip(TooltipTypes.addmp, mp.toFixed(0));
this.top_node.active=true
this.mp_show(this.model.mp, this.model.Attrs[Attrs.MP_MAX]);
}
alive(){