diff --git a/assets/Game/scripts/SlotBar.ts b/assets/Game/scripts/SlotBar.ts index 473e4cd..ed9789b 100644 --- a/assets/Game/scripts/SlotBar.ts +++ b/assets/Game/scripts/SlotBar.ts @@ -658,7 +658,7 @@ export class SlotBar extends Component { this.setBtnVisible(this.spinBtn, true); this.setBtnVisible(this.stopAutoBtn, false); this.setBtnEnable(this.spinBtn, false); - this.slotGame.showFeatureBuy(false) + this.slotGame.showFeatureBuy(this.getBet() * this.gameInfo.BuyMul > this.gameInfo.MaxBuyBet) } diff --git a/assets/Game/scripts/SlotGame.ts b/assets/Game/scripts/SlotGame.ts index f964cd6..ef5a5fe 100644 --- a/assets/Game/scripts/SlotGame.ts +++ b/assets/Game/scripts/SlotGame.ts @@ -875,8 +875,8 @@ export class SlotGame extends Component { } - showFeatureBuy(isShow: boolean) { - this.featureBuyNode.active = !isShow; + showFeatureBuy(isHide: boolean) { + this.featureBuyNode.active = !isHide; } setFeatureBuyInteractable(isInteractable: boolean) { diff --git a/assets/Game/scripts/SlotScene.ts b/assets/Game/scripts/SlotScene.ts index 613cc2c..f633f4f 100644 --- a/assets/Game/scripts/SlotScene.ts +++ b/assets/Game/scripts/SlotScene.ts @@ -127,11 +127,7 @@ export class SlotScene extends Component { // this.FreeSpinEnter.show(8) // this.FreeSpinAdd.show(5) // this.BigWinUI.show(800000, WIN_TYPE.SUPER_MEGA_WIN, 10000) - if (!this.gameInfo.CloseBuyGame) { - this.slotGame.showFeatureBuy( - this.slotBar.getBet() * this.gameInfo.BuyMul > this.gameInfo.MaxBuyBet - ); - } + } private async init() { @@ -310,7 +306,7 @@ export class SlotScene extends Component { if (curBalance < (isFeatureBuy ? this.slotBar.getBet() * this.gameInfo.BuyMul : this.slotBar.getBet()) && !isFreeSpin && !GameDataManager.instance.frb.Ongoing) { //余额不足不经过服务器,在客户端拦截 this.showErrorTip(2, () => { this.slotBar.onConfirmErr2() }); - this.handleErrSpin(); + this.handleErrSpin(true); this.isErr2 = true; return }