老的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

View File

@@ -1,35 +0,0 @@
import { _decorator, Component, Node, tween, v3, Vec3 } from 'cc';
const { ccclass, property } = _decorator;
@ccclass('BuffGet')
export class BuffGet extends Component {
start() {
this.scheduleOnce(()=>{
tween(this.node).to( 0.2,
{ position: new Vec3(this.node.position.x,this.node.position.y+100) },
{
onComplete:()=>{ this.node.destroy() }
}
).start();
}, 3);
}
init(name:string){
this.node.getChildByName("ap").active=(name=="ap")
this.node.getChildByName("cd").active=(name=="cd")
this.node.getChildByName("def").active=(name=="def")
this.node.getChildByName("hp").active=(name=="hp")
this.node.getChildByName("crit").active=(name=="crit")
this.node.getChildByName("dodge").active=(name=="dodge")
this.node.getChildByName("deap").active=(name=="deap")
this.node.getChildByName("decd").active=(name=="decd")
this.node.getChildByName("dedef").active=(name=="dedef")
this.node.getChildByName("dehp").active=(name=="dehp")
this.node.getChildByName("decrit").active=(name=="decrit")
this.node.getChildByName("dedodge").active=(name=="dedodge")
}
update(deltaTime: number) {
}
}

View File

@@ -1,9 +0,0 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "28a19abf-3818-4e24-92af-0e3c0c05299b",
"files": [],
"subMetas": {},
"userData": {}
}