feat(技能提示): 在技能名称后显示施放次数

当技能有多次施放时,在技能名称后添加"*N"标识
This commit is contained in:
panw
2026-04-15 14:41:23 +08:00
parent 9148c830c2
commit 52fe4358ea
4 changed files with 1937 additions and 122 deletions

View File

@@ -269,7 +269,12 @@ export class HeroViewComp extends CCComp {
pos.y = pos.y + y;
Tooltip.load(pos, type, value, s_uuid, this.node);
}
/** 技能提示 */
public skill_name(value: string = "", s_uuid: number = 1001, y: number = 50) {
let pos = v3(0, 60);
pos.y = pos.y + y;
Tooltip.load(pos, TooltipTypes.skill, value, s_uuid, this.node);
}
/** 血量提示(伤害数字) */
private hp_tip(type: number = 1, value: string = "", s_uuid: number = 1001, y: number = 0) {
let x = this.node.position.x;