赢分时信息栏显示总赢分
This commit is contained in:
parent
2d8176cc9d
commit
3deac8c38a
File diff suppressed because it is too large
Load Diff
@ -37,7 +37,7 @@ export class SlotGame extends Component {
|
|||||||
|
|
||||||
private normalWin: Node = null;
|
private normalWin: Node = null;
|
||||||
private normalWinLayout: Layout = null;
|
private normalWinLayout: Layout = null;
|
||||||
private normalWinSprite: Node = null;
|
// private normalWinSprite: Node = null;
|
||||||
private normalTotalWinSprite: Node = null;
|
private normalTotalWinSprite: Node = null;
|
||||||
private normalWinLabel: Label = null;
|
private normalWinLabel: Label = null;
|
||||||
|
|
||||||
@ -99,7 +99,7 @@ export class SlotGame extends Component {
|
|||||||
this.totalWin = frameNode.getChildByName('marqueeFrame_03');
|
this.totalWin = frameNode.getChildByName('marqueeFrame_03');
|
||||||
|
|
||||||
this.normalWinLayout = this.normalWin.getChildByName('layout').getComponent(Layout);
|
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.normalTotalWinSprite = this.normalWinLayout.node.getChildByName('totalWinSprite');
|
||||||
this.normalWinLabel = this.normalWinLayout.node.getChildByName('winScore').getComponent(Label);
|
this.normalWinLabel = this.normalWinLayout.node.getChildByName('winScore').getComponent(Label);
|
||||||
|
|
||||||
@ -430,13 +430,13 @@ export class SlotGame extends Component {
|
|||||||
if (!isReconnect) {
|
if (!isReconnect) {
|
||||||
AudioManager.instance.playSFX('Appear_Small_Total_Win_Sound');
|
AudioManager.instance.playSFX('Appear_Small_Total_Win_Sound');
|
||||||
}
|
}
|
||||||
this.normalWinSprite.active = false;
|
// this.normalWinSprite.active = false;
|
||||||
this.normalTotalWinSprite.active = true;
|
this.normalTotalWinSprite.active = true;
|
||||||
} else {
|
} else {
|
||||||
if (!isReconnect) {
|
if (!isReconnect) {
|
||||||
// AudioManager.instance.playSFX('Appear_Normal_Win_Sound');
|
// AudioManager.instance.playSFX('Appear_Normal_Win_Sound');
|
||||||
}
|
}
|
||||||
this.normalWinSprite.active = true;
|
// this.normalWinSprite.active = false;
|
||||||
this.normalTotalWinSprite.active = false;
|
this.normalTotalWinSprite.active = false;
|
||||||
}
|
}
|
||||||
this.normalWinLabel.string = gold2cash(score);
|
this.normalWinLabel.string = gold2cash(score);
|
||||||
|
|||||||
@ -614,7 +614,7 @@ export class SlotScene extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
playElemWinAnimation(isFirstWin: boolean = false) {
|
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);
|
this.slotBar.setWin(this.spinData.AllScore);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user