refactor(skill tooltip): 优化技能触发类型命名与 tooltip 背景配置
1. 修正 SkillTriggerName 中的技能触发类型文本翻译,使其更贴合游戏内实际表述 2. 为 tooltip 预制体和组件新增6种状态的背景节点引用
This commit is contained in:
@@ -7839,6 +7839,24 @@
|
|||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 323
|
"__id__": 323
|
||||||
},
|
},
|
||||||
|
"atking_bg": {
|
||||||
|
"__id__": 89
|
||||||
|
},
|
||||||
|
"atked_bg": {
|
||||||
|
"__id__": 113
|
||||||
|
},
|
||||||
|
"fstart_bg": {
|
||||||
|
"__id__": 101
|
||||||
|
},
|
||||||
|
"fend_bg": {
|
||||||
|
"__id__": 107
|
||||||
|
},
|
||||||
|
"dead_bg": {
|
||||||
|
"__id__": 95
|
||||||
|
},
|
||||||
|
"revive_bg": {
|
||||||
|
"__id__": 119
|
||||||
|
},
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -100,14 +100,14 @@ export enum SkillTriggerType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const SkillTriggerName = {
|
export const SkillTriggerName = {
|
||||||
[SkillTriggerType.Call]: "降临",
|
[SkillTriggerType.Call]: "召唤",
|
||||||
[SkillTriggerType.Dead]: "遗志",
|
[SkillTriggerType.Dead]: "亡语",
|
||||||
[SkillTriggerType.FStart]: "先手",
|
[SkillTriggerType.FStart]: "起手",
|
||||||
[SkillTriggerType.FEnd]: "终战",
|
[SkillTriggerType.FEnd]: "生息",
|
||||||
[SkillTriggerType.Field]: "光环",
|
[SkillTriggerType.Field]: "光环",
|
||||||
[SkillTriggerType.Atking]: "追击",
|
[SkillTriggerType.Atking]: "进击",
|
||||||
[SkillTriggerType.Atked]: "反击",
|
[SkillTriggerType.Atked]: "受击",
|
||||||
[SkillTriggerType.Revive]: "涅槃",
|
[SkillTriggerType.Revive]: "复活",
|
||||||
}
|
}
|
||||||
|
|
||||||
export const SkillTriggerDesc = {
|
export const SkillTriggerDesc = {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { _decorator, Collider2D, Contact2DType, v3, IPhysics2DContact, Vec3, tween, Label, resources, SpriteFrame, Sprite, UIOpacity, Color, math, Tween } from "cc";
|
import { _decorator, Collider2D, Contact2DType, v3, IPhysics2DContact, Vec3, tween, Label, resources, SpriteFrame, Sprite, UIOpacity, Color, math, Tween,Node } from "cc";
|
||||||
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
||||||
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
|
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
|
||||||
import { SkillSet } from "../common/config/SkillSet";
|
import { SkillSet } from "../common/config/SkillSet";
|
||||||
@@ -11,11 +11,24 @@ const { ccclass, property } = _decorator;
|
|||||||
@ccclass('TooltipCom')
|
@ccclass('TooltipCom')
|
||||||
@ecs.register('TooltipView', false)
|
@ecs.register('TooltipView', false)
|
||||||
export class TooltipCom extends CCComp {
|
export class TooltipCom extends CCComp {
|
||||||
|
@property(Node)
|
||||||
|
atking_bg: Node = null;
|
||||||
|
@property(Node)
|
||||||
|
atked_bg: Node = null;
|
||||||
|
@property(Node)
|
||||||
|
fstart_bg: Node = null;
|
||||||
|
@property(Node)
|
||||||
|
fend_bg: Node = null;
|
||||||
|
@property(Node)
|
||||||
|
dead_bg: Node = null;
|
||||||
|
@property(Node)
|
||||||
|
revive_bg: Node = null;
|
||||||
|
|
||||||
stype: number = 1; // 1:减少生命值,2:增加生命值,3:技能图标
|
stype: number = 1; // 1:减少生命值,2:增加生命值,3:技能图标
|
||||||
value: string = "";
|
value: string = "";
|
||||||
s_uuid: number = 1001;
|
s_uuid: number = 1001;
|
||||||
fac: number = FacSet.MON;
|
fac: number = FacSet.MON;
|
||||||
|
|
||||||
// 动画参数配置
|
// 动画参数配置
|
||||||
private readonly popDuration = 0.15;
|
private readonly popDuration = 0.15;
|
||||||
private readonly driftDuration = 0.5;
|
private readonly driftDuration = 0.5;
|
||||||
|
|||||||
Reference in New Issue
Block a user