老的ui 依赖完全去除

This commit is contained in:
2025-08-03 20:26:28 +08:00
parent 4b694120ff
commit f579ed49e7
68 changed files with 40231 additions and 93332 deletions

View File

@@ -29,7 +29,6 @@ export class MissionHeroCompComp extends CCComp {
}
start() {
// this.test_call()
this.node.getChildByName("location").active=false
}
fight_ready(){
}
@@ -75,50 +74,8 @@ export class MissionHeroCompComp extends CCComp {
}
// show_heros_pos(event: string, args: any){
// console.log("show_heros_pos",args)
// this.current_hero_uuid=args.uuid
// this.update_fight_hero_info()
// this.node.getChildByName("location").active=true
// }
// update_fight_hero_info(){
// var icon_path = "game/heros/herois"
// this.node.getChildByName("location").getChildByName("herospos").getChildByName("heropos1").getChildByName("hero").active=false
// this.node.getChildByName("location").getChildByName("herospos").getChildByName("heropos2").getChildByName("hero").active=false
// this.node.getChildByName("location").getChildByName("herospos").getChildByName("heropos3").getChildByName("hero").active=false
// let heros=ecs.query(ecs.allOf(HeroModelComp))
// for(let hero of heros){
// let hv = hero.get(HeroViewComp)
// if(hv.fight_pos==0){
// this.node.getChildByName("location").getChildByName("herospos").getChildByName("heropos1").getChildByName("hero").active=true
// resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
// const sprite = this.node.getChildByName("location").getChildByName("herospos").getChildByName("heropos1").getChildByName("hero").getChildByName("icon").getComponent(Sprite);
// sprite.spriteFrame = atlas.getSpriteFrame(HeroInfo[hv.hero_uuid].path);
// });
// }
// if(hv.fight_pos==1){
// this.node.getChildByName("location").getChildByName("herospos").getChildByName("heropos2").getChildByName("hero").active=true
// resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
// const sprite = this.node.getChildByName("location").getChildByName("herospos").getChildByName("heropos2").getChildByName("hero").getChildByName("icon").getComponent(Sprite);
// sprite.spriteFrame = atlas.getSpriteFrame(HeroInfo[hv.hero_uuid].path);
// });
// }
// if(hv.fight_pos==2){
// this.node.getChildByName("location").getChildByName("herospos").getChildByName("heropos3").getChildByName("hero").active=true
// resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
// const sprite = this.node.getChildByName("location").getChildByName("herospos").getChildByName("heropos3").getChildByName("hero").getChildByName("icon").getComponent(Sprite);
// sprite.spriteFrame = atlas.getSpriteFrame(HeroInfo[hv.hero_uuid].path);
// });
// }
// }
// }
call_hero(event: string, args: any){
// this.node.getChildByName("location").active=false
// console.log("call_hero",args)
// let fight_pos=args
// this.timer.reset()

View File

@@ -111,11 +111,6 @@ export class TalsComp extends Component {
sprite.spriteFrame = atlas.getSpriteFrame(TalentList[uuid].path);
});
icon.getChildByName("q1").active=TalentList[uuid].quality==Quality.WHITE
icon.getChildByName("q2").active=TalentList[uuid].quality==Quality.GREEN
icon.getChildByName("q3").active=TalentList[uuid].quality==Quality.BLUE
icon.getChildByName("q4").active=TalentList[uuid].quality==Quality.PURPLE
icon.getChildByName("q5").active=TalentList[uuid].quality==Quality.ORANGE
}
to_change_tal(){
if(smc.vmdata.mission_data.refresh_count<=0) return