清理 ui1 ui2 精简到ui3 和ui4

This commit is contained in:
2025-10-12 14:58:52 +08:00
parent d628829718
commit 797cf72a09
101 changed files with 10216 additions and 107449 deletions

View File

@@ -5,7 +5,6 @@ import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/O
import { smc } from "../common/SingletonModuleComp";
import { GameEvent } from "../common/config/GameEvent";
import { HeroPageComp } from "./HeroPageComp";
import { finishCurrGuide, GuideConfig, startGuide } from "../common/config/Guide";
import { Timer } from "db://oops-framework/core/common/timer/Timer";
import { randomSpeek, Speeks } from "../common/config/Tasks";
@@ -25,9 +24,6 @@ export class MissionHomeComp extends CCComp {
this.home_active()
}
onEnable(){
this.startNextGuide(); // 启动第一个引导
startGuide(1)
startGuide(2)
}
update(dt:number){
if(this.speek_cd.update(dt)){
@@ -37,18 +33,10 @@ export class MissionHomeComp extends CCComp {
console.log("[MissionHomeComp]:speek",speek,slot)
}
}
/** 启动下一个引导 */
private startNextGuide() {
// 检查是否还有未完成的引导
if(smc.guides[GuideConfig[0].key]==0){
oops.message.dispatchEvent(GameEvent.GuideStart,0)
}
}
start_mission() {
finishCurrGuide(1)
finishCurrGuide(10)
oops.message.dispatchEvent(GameEvent.MissionStart, {})
this.node.active=false;
}
@@ -69,50 +57,6 @@ 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
// }
}