|
@ -31,16 +31,20 @@ export class OptPanelUI60005 extends Component { |
|
|
protected onLoad(): void { |
|
|
protected onLoad(): void { |
|
|
Message.add(GameEvent60005.Disable_Opt_Btn,this.onDisableOptBtn,this) |
|
|
Message.add(GameEvent60005.Disable_Opt_Btn,this.onDisableOptBtn,this) |
|
|
Message.add("BetValChanage",this.onBetValChanage,this) |
|
|
Message.add("BetValChanage",this.onBetValChanage,this) |
|
|
|
|
|
Message.add("OnClickAutoSpine",this.OnClickAutoSpine,this) |
|
|
} |
|
|
} |
|
|
protected onDestroy(): void { |
|
|
protected onDestroy(): void { |
|
|
Message.remove(GameEvent60005.Disable_Opt_Btn,this.onDisableOptBtn,this) |
|
|
Message.remove(GameEvent60005.Disable_Opt_Btn,this.onDisableOptBtn,this) |
|
|
Message.remove("BetValChanage",this.onBetValChanage,this) |
|
|
Message.remove("BetValChanage",this.onBetValChanage,this) |
|
|
|
|
|
Message.remove("OnClickAutoSpine",this.OnClickAutoSpine,this) |
|
|
} |
|
|
} |
|
|
private onBetValChanage(val:number,index:number){ |
|
|
private onBetValChanage(val:number,index:number){ |
|
|
GameController60005.getInstance().roomInfo.betNum=index |
|
|
GameController60005.getInstance().roomInfo.betNum=index |
|
|
this.setBetVal(val) |
|
|
this.setBetVal(val) |
|
|
} |
|
|
} |
|
|
|
|
|
private OnClickAutoSpine(){ |
|
|
|
|
|
this.onClickAuto() |
|
|
|
|
|
} |
|
|
private _isOptSpin:boolean=false |
|
|
private _isOptSpin:boolean=false |
|
|
private onDisableOptBtn(status:boolean){ |
|
|
private onDisableOptBtn(status:boolean){ |
|
|
// this._isOptSpin=status
|
|
|
// this._isOptSpin=status
|
|
|