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

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

View File

@@ -69,50 +69,50 @@ export class MissionHomeComp extends CCComp {
}
btn_func(e:string,data:any){
// console.log("[MissionHomeComp]:btn_func",e,data)
let page_heros=this.node.getChildByName("heros_page")
let page_shop=this.node.getChildByName("shop_page")
// let page_fight=this.node.getChildByName("fight_page")
// let page_skill=this.node.getChildByName("skill_page")
// let page_set=this.node.getChildByName("set_page")
let btns=this.node.getChildByName("btns")
let btn_shop =btns.getChildByName("shop")
let btn_heros =btns.getChildByName("heros")
let btn_fight =btns.getChildByName("fight")
let btn_skill =btns.getChildByName("skill")
let btn_set =btns.getChildByName("set")
btn_shop.getChildByName("act").active=false
btn_heros.getChildByName("act").active=false
btn_fight.getChildByName("act").active=false
btn_skill.getChildByName("act").active=false
btn_set.getChildByName("act").active=false
page_heros.active=false
page_shop.active=false
switch(data){
case "shop":
page_shop.active=true
btn_shop.getChildByName("act").active=true
break
case "heros":
finishCurrGuide(2)
page_heros.active=true
btn_heros.getChildByName("act").active=true
break
case "fight":
finishCurrGuide(7)
startGuide(8)
btn_fight.getChildByName("act").active=true
break
case "skill":
btn_skill.getChildByName("act").active=true
break
case "set":
btn_set.getChildByName("act").active=true
break
default:
btn_fight.getChildByName("act").active=true
break
}
// // console.log("[MissionHomeComp]:btn_func",e,data)
// let page_heros=this.node.getChildByName("heros_page")
// let page_shop=this.node.getChildByName("shop_page")
// // let page_fight=this.node.getChildByName("fight_page")
// // let page_skill=this.node.getChildByName("skill_page")
// // let page_set=this.node.getChildByName("set_page")
// let btns=this.node.getChildByName("btns")
// let btn_shop =btns.getChildByName("shop")
// let btn_heros =btns.getChildByName("heros")
// let btn_fight =btns.getChildByName("fight")
// let btn_skill =btns.getChildByName("skill")
// let btn_set =btns.getChildByName("set")
// btn_shop.getChildByName("act").active=false
// btn_heros.getChildByName("act").active=false
// btn_fight.getChildByName("act").active=false
// btn_skill.getChildByName("act").active=false
// btn_set.getChildByName("act").active=false
// page_heros.active=false
// page_shop.active=false
// switch(data){
// case "shop":
// page_shop.active=true
// btn_shop.getChildByName("act").active=true
// break
// case "heros":
// finishCurrGuide(2)
// page_heros.active=true
// btn_heros.getChildByName("act").active=true
// break
// case "fight":
// finishCurrGuide(7)
// startGuide(8)
// btn_fight.getChildByName("act").active=true
// break
// case "skill":
// btn_skill.getChildByName("act").active=true
// break
// case "set":
// btn_set.getChildByName("act").active=true
// break
// default:
// btn_fight.getChildByName("act").active=true
// break
// }
}