界面清理,现在开始 升级 进化设置

This commit is contained in:
2025-07-14 17:02:56 +08:00
parent 6b6d4db571
commit 3a53b5e531
2 changed files with 3926 additions and 21270 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -105,7 +105,6 @@ export class MissionComp extends CCComp {
smc.vmdata.hero = JSON.parse(JSON.stringify(VmInfo)); smc.vmdata.hero = JSON.parse(JSON.stringify(VmInfo));
smc.vmdata.boss = JSON.parse(JSON.stringify(VmInfo)); smc.vmdata.boss = JSON.parse(JSON.stringify(VmInfo));
this.GlodAddTimer=new Timer(smc.vmdata.mission_data.refrsh_time) this.GlodAddTimer=new Timer(smc.vmdata.mission_data.refrsh_time)
this.hide_call_friend()
} }
@@ -134,9 +133,6 @@ export class MissionComp extends CCComp {
oops.message.dispatchEvent(GameEvent.HeroSelect,{is_master:false}) oops.message.dispatchEvent(GameEvent.HeroSelect,{is_master:false})
} }
call_func_card(){ call_func_card(){
let mission_data=smc.vmdata.mission_data let mission_data=smc.vmdata.mission_data
if(mission_data.gold < (mission_data.refresh_gold+mission_data.buff_refresh_gold)){ if(mission_data.gold < (mission_data.refresh_gold+mission_data.buff_refresh_gold)){
@@ -151,10 +147,7 @@ export class MissionComp extends CCComp {
ecs.query(ecs.allOf(HeroViewComp)).forEach(entity => {entity.remove(HeroViewComp);entity.destroy()}); ecs.query(ecs.allOf(HeroViewComp)).forEach(entity => {entity.remove(HeroViewComp);entity.destroy()});
} }
hide_call_friend(){
// let node =this.node.getChildByName("new_hero")
// tween(node).to(0.3, {position:v3(480,node.position.y,1)}).start()
}
/** 视图层逻辑代码分离演示 */ /** 视图层逻辑代码分离演示 */
/** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */ /** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */