ui调整 去掉一些不要的

This commit is contained in:
2025-08-03 16:25:51 +08:00
parent eff5f21d04
commit 5c8a15262e
27 changed files with 33862 additions and 42086 deletions

View File

@@ -95,7 +95,7 @@ export class MissionComp extends CCComp {
count_tal(){
let count=0
for(let i=0;i<5;i++){
for(let i=0;i<FightSet.TAL_NUM;i++){
if(this.tals[i]){
count++
}
@@ -106,7 +106,7 @@ export class MissionComp extends CCComp {
do_mon_dead(){
this.do_mon_dead_thing()
smc.vmdata.mission_data.mon_num--
if(smc.vmdata.mission_data.mon_num<=0 && this.count_tal() < 6) {
if(smc.vmdata.mission_data.mon_num<=0 && this.count_tal() < FightSet.TAL_NUM) {
if(smc.vmdata.mission_data.current_wave == RogueTalWave[this.count_tal()].wave){
console.log("[MissionComp] current_wave:"+smc.vmdata.mission_data.current_wave+" tal wave:"+RogueTalWave[this.count_tal()].wave)
oops.message.dispatchEvent(GameEvent.TalentSelect,{slot:TalentSlot[this.count_tal()]})
@@ -311,7 +311,7 @@ export class MissionComp extends CCComp {
oops.message.dispatchEvent(GameEvent.LuckCardUsed,card)
}
show_lucky_gold(card:any){
this.node.getChildByName("luckybox").getComponent(Animation).play("luckyopen")
// this.node.getChildByName("luckybox").getComponent(Animation).play("luckyopen")
var path = "game/gui/lcard";
var prefab: Prefab = oops.res.get(path, Prefab)!;
var node = instantiate(prefab);
@@ -325,9 +325,7 @@ export class MissionComp extends CCComp {
position: v3(0, height-300),
}, {easing:"backOut"})
.start();
this.scheduleOnce(()=>{
this.node.getChildByName("luckybox").getComponent(Animation).play("lucky")
},1)
}
private cleanComponents() {
ecs.query(ecs.allOf(HeroViewComp)).forEach(entity => {entity.remove(HeroViewComp);entity.destroy()});