From 10562f980cc78d7b65d45c863c183d12aa1accbd Mon Sep 17 00:00:00 2001 From: TJH Date: Thu, 11 Jun 2026 11:15:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=AD=E4=B9=B0=E6=8C=89=E9=92=AE=E9=9A=90?= =?UTF-8?q?=E8=97=8F=E7=9A=84=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Game/scripts/SlotBar.ts | 2 +- assets/Game/scripts/SlotGame.ts | 4 ++-- assets/Game/scripts/SlotScene.ts | 8 ++------ 3 files changed, 5 insertions(+), 9 deletions(-) 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 }