dd
This commit is contained in:
@@ -221,7 +221,7 @@ export class HeroViewComp extends CCComp {
|
||||
}
|
||||
this.BUFFCOMP.vmdata_update()
|
||||
this.BUFFCOMP.tooltip(TooltipTypes.apup,ap.toFixed(0));
|
||||
oops.message.dispatchEvent(GameEvent.APChange,{fac:this.fac})
|
||||
oops.message.dispatchEvent(GameEvent.APChange,{is_master:this.is_master,fac:this.fac})
|
||||
}
|
||||
|
||||
de_ap(ap: number,is_num:boolean=true){
|
||||
|
||||
@@ -59,7 +59,7 @@ export class BarCompComp extends CCComp {
|
||||
}
|
||||
private ap_change(e:any,data:any){
|
||||
console.log("[barcomp]:ap_change",data)
|
||||
if(data.fac==FacSet.HERO){
|
||||
if(data.is_master==true){
|
||||
let barNode = this.node.getChildByName("bar").getChildByName("ap").getChildByName("val")
|
||||
tween(barNode).to(0.2, {scale:v3(1.5,1.5,1)},{
|
||||
onComplete:()=>{
|
||||
|
||||
Reference in New Issue
Block a user