refactor(skill tooltip): 移除技能提示的触发类型相关参数
1. 移除TooltipCom中triggerType相关属性和setupTriggerBg方法 2. 简化各层调用时的triggerType参数传递 3. 删除未使用的SkillTriggerType导入
This commit is contained in:
@@ -216,10 +216,10 @@ export class HeroViewComp extends CCComp {
|
||||
Tooltip.load(pos, type, value, s_uuid, this.node);
|
||||
}
|
||||
/** 技能提示 */
|
||||
public skill_name(value: string = "", s_uuid: number = 1001, triggerType: string = "", y: number = 50) {
|
||||
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, 1, this.model?.fac ?? FacSet.MON, triggerType);
|
||||
Tooltip.load(pos, TooltipTypes.skill, value, s_uuid, this.node, 1, this.model?.fac ?? FacSet.MON);
|
||||
}
|
||||
/** 血量提示(伤害数字) */
|
||||
private hp_tip(type: number = 1, value: string = "", s_uuid: number = 1001, y: number = 0, debuffIcon: string = "") {
|
||||
@@ -234,7 +234,7 @@ export class HeroViewComp extends CCComp {
|
||||
// 起点设为怪物中心偏下位置,使其在血条下方
|
||||
let ny = this.node.position.y + halfHeight - 15;
|
||||
let pos = v3(x, ny, 0);
|
||||
Tooltip.load(pos, type, value, s_uuid, this.node.parent, 1, this.model?.fac ?? FacSet.MON, "", debuffIcon);
|
||||
Tooltip.load(pos, type, value, s_uuid, this.node.parent, 1, this.model?.fac ?? FacSet.MON, debuffIcon);
|
||||
}
|
||||
|
||||
/** 护盾减免提示 */
|
||||
|
||||
Reference in New Issue
Block a user