赢分时信息栏显示总赢分

This commit is contained in:
TJH 2025-09-18 17:45:41 +08:00
parent 2d8176cc9d
commit 3deac8c38a
3 changed files with 1693 additions and 1841 deletions

File diff suppressed because it is too large Load Diff

View File

@ -37,7 +37,7 @@ export class SlotGame extends Component {
private normalWin: Node = null;
private normalWinLayout: Layout = null;
private normalWinSprite: Node = null;
// private normalWinSprite: Node = null;
private normalTotalWinSprite: Node = null;
private normalWinLabel: Label = null;
@ -99,7 +99,7 @@ export class SlotGame extends Component {
this.totalWin = frameNode.getChildByName('marqueeFrame_03');
this.normalWinLayout = this.normalWin.getChildByName('layout').getComponent(Layout);
this.normalWinSprite = this.normalWinLayout.node.getChildByName('winSprite');
// this.normalWinSprite = this.normalWinLayout.node.getChildByName('winSprite');
this.normalTotalWinSprite = this.normalWinLayout.node.getChildByName('totalWinSprite');
this.normalWinLabel = this.normalWinLayout.node.getChildByName('winScore').getComponent(Label);
@ -430,13 +430,13 @@ export class SlotGame extends Component {
if (!isReconnect) {
AudioManager.instance.playSFX('Appear_Small_Total_Win_Sound');
}
this.normalWinSprite.active = false;
// this.normalWinSprite.active = false;
this.normalTotalWinSprite.active = true;
} else {
if (!isReconnect) {
// AudioManager.instance.playSFX('Appear_Normal_Win_Sound');
}
this.normalWinSprite.active = true;
// this.normalWinSprite.active = false;
this.normalTotalWinSprite.active = false;
}
this.normalWinLabel.string = gold2cash(score);

View File

@ -614,7 +614,7 @@ export class SlotScene extends Component {
}
playElemWinAnimation(isFirstWin: boolean = false) {
this.slotGame.showWinScore(true, isFirstWin, false, false, false, this.spinData.Score);
this.slotGame.showWinScore(true, isFirstWin, false, false, false, this.spinData.AllScore);
this.slotBar.setWin(this.spinData.AllScore);
}