This commit is contained in:
2025-07-21 23:35:11 +08:00
parent a073682615
commit f841c9ec7f
12 changed files with 6107 additions and 4847 deletions

View File

@@ -25,6 +25,8 @@ export class BarCompComp extends CCComp {
this.on(GameEvent.FightReady,this.readay,this)
this.on(GameEvent.MasterCalled,this.master_called,this)
this.on(GameEvent.APChange,this.ap_change,this)
this.on(GameEvent.CanUpdateLv,this.show_uplv_button,this)
this.on(GameEvent.UseEnhancement,this.hide_uplv_button,this)
}
start() {
@@ -35,6 +37,7 @@ export class BarCompComp extends CCComp {
private readay(){
this.node.getChildByName("bar").active = true
this.node.getChildByName("bar").getChildByName("more").active=false
this.node.getChildByName("bar").getChildByName("uplv").active=false
}
private master_called(e:any,data:any){
this.node.getChildByName("bar").active = true
@@ -58,6 +61,12 @@ export class BarCompComp extends CCComp {
}
}
show_uplv_button(){
this.node.getChildByName("bar").getChildByName("uplv").active=true
}
hide_uplv_button(){
this.node.getChildByName("bar").getChildByName("uplv").active=false
}
show_master_more(){
let barNode = this.node.getChildByName("bar");
let node = barNode.getChildByName("more");

View File

@@ -69,7 +69,9 @@ export class MissionComp extends CCComp {
to_ready(){
oops.message.dispatchEvent(GameEvent.HeroSelect,{is_master:true})
}
to_uplv(){
oops.message.dispatchEvent(GameEvent.EnhancementSelect)
}
to_call_friend(){
oops.message.dispatchEvent(GameEvent.HeroSelect,{is_master:false})
}