feat(技能槽UI): 调整技能槽布局并更新预制件样式
清理了无用的导入语句,调整了MissSkillsComp中的技能槽坐标位置,更新了sbox预制件的图标、文本样式与节点配置,优化界面显示效果。
This commit is contained in:
@@ -24,11 +24,9 @@ import { mLogger } from "../common/Logger";
|
||||
import { _decorator, Node, Prefab, instantiate, Vec3 } from "cc";
|
||||
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
||||
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
|
||||
import { SkillBoxComp } from "./SkillBoxComp";
|
||||
import { SBox } from "./SBox";
|
||||
import { oops } from "db://oops-framework/core/Oops";
|
||||
import { GameEvent } from "../common/config/GameEvent";
|
||||
import { smc } from "../common/SingletonModuleComp";
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
/** 技能槽位数据结构 */
|
||||
@@ -65,16 +63,16 @@ export class MissSkillsComp extends CCComp {
|
||||
* 第 2 行 y=320:x = -320, -240, -160, -80, 0
|
||||
*/
|
||||
private slots: SkillBoxSlot[] = [
|
||||
{ x: -320, y: 240, used: false, node: null },
|
||||
{ x: -240, y: 240, used: false, node: null },
|
||||
{ x: -160, y: 240, used: false, node: null },
|
||||
{ x: -80, y: 240, used: false, node: null },
|
||||
{ x: 0, y: 240, used: false, node: null },
|
||||
{ x: -320, y: 320, used: false, node: null },
|
||||
{ x: -240, y: 320, used: false, node: null },
|
||||
{ x: -160, y: 320, used: false, node: null },
|
||||
{ x: -80, y: 320, used: false, node: null },
|
||||
{ x: 0, y: 320, used: false, node: null },
|
||||
{ x: -320, y: 340, used: false, node: null },
|
||||
{ x: -240, y: 340, used: false, node: null },
|
||||
{ x: -160, y: 340, used: false, node: null },
|
||||
{ x: -80, y: 340, used: false, node: null },
|
||||
{ x: 0, y: 340, used: false, node: null },
|
||||
{ x: -320, y: 420, used: false, node: null },
|
||||
{ x: -240, y: 420, used: false, node: null },
|
||||
{ x: -160, y: 420, used: false, node: null },
|
||||
{ x: -80, y: 420, used: false, node: null },
|
||||
{ x: 0, y: 420, used: false, node: null },
|
||||
];
|
||||
|
||||
/** 注册事件监听 */
|
||||
|
||||
Reference in New Issue
Block a user