refactor: 优化技能图标与动画资源,更新配置表

1. 新增maxw1、maxw2技能预制体并删除range1预制体
2. 预加载ui7图集防止GC回收
3. 更新全量技能、buff、天赋的图标配置
4. 调整技能动画帧率与时长优化表现
5. 修复技能UI组件的布局与引用
This commit is contained in:
panFD
2026-09-06 23:55:57 +08:00
parent 084187f924
commit 9917442420
19 changed files with 4002 additions and 8351 deletions

View File

@@ -561,6 +561,15 @@ export class SingletonModuleComp extends ecs.Comp {
mLogger.error(this.debugMode, 'SMC', "预加载 gui/ui6 图集失败:", err);
}
});
resources.load("gui/ui7", SpriteAtlas, (err, atlas) => {
if (!err && atlas) {
// 增加引用计数,防止图集被引擎自动垃圾回收(GC)导致底层 spriteFrames 为 null
atlas.addRef();
this.skillIconsAtlas = atlas;
} else {
mLogger.error(this.debugMode, 'SMC', "预加载 gui/ui7 技能图标图集失败:", err);
}
});
}
}