refactor(heroUi): 精简和优化英雄界面预制资源

heriui载入 还有问题
- 移除了大量冗余节点和组件,减小预制体体积
- 调整部分节点名称和层级结构,更加清晰易维护
- 优化部分节点位置和尺寸属性,提升界面表现一致性
- 更新部分精灵资源引用及颜色配置,保证视觉效果正确
- 删除无用的动画剪辑和挂载组件,提升加载性能
- 重新整理属性覆盖信息,保持配置整洁规范
This commit is contained in:
panw
2025-10-10 16:55:01 +08:00
parent 577f43042b
commit 5ed5579142
8 changed files with 1264 additions and 20297 deletions

View File

@@ -48,12 +48,13 @@ export class MissionHeroCompComp extends CCComp {
smc.vmdata.mission_data.hero_num=0
// console.log("[MissionHeroComp]:fight_ready",smc.fight_heros,Object.keys(smc.fight_heros).length)
let heros:any = smc.fight_heros
for(let i=0;i<Object.keys(heros).length;i++){
if(heros[i]!=0){
// console.log("[MissionHeroComp]:fight_ready",heros[i])
this.addHero(heros[i],false)
}
}
this.addHero(heros[0],false)
// for(let i=0;i<Object.keys(heros).length;i++){
// if(heros[i]!=0){
// // console.log("[MissionHeroComp]:fight_ready",heros[i])
// this.addHero(heros[i],false)
// }
// }
}
protected update(dt: number): void {
if(smc.mission.status != 1) return