This commit is contained in:
TJH 2026-04-29 17:02:53 +08:00
parent 7dee3af062
commit fa50168802
2 changed files with 1246 additions and 648 deletions

File diff suppressed because it is too large Load Diff

View File

@ -394,9 +394,11 @@ export class HistoryDetail extends Component {
let roller_normal = content.getChildByName('Roller').getChildByName('icon_normal');
let roller_gray = content.getChildByName('Roller').getChildByName('gray');
let roller_wins = content.getChildByName('Roller').getChildByName('icon_wins');
let roller_scatter = content.getChildByName('Roller').getChildByName('icon_scatter');
roller_normal.removeAllChildren();
roller_gray.active = false;
roller_wins.removeAllChildren();
roller_scatter.removeAllChildren();
let upIconIndexs = [];
if (winInfo[0] != null) {
@ -436,12 +438,16 @@ export class HistoryDetail extends Component {
let multiNode = iconPre.getChildByName('multi');
multiNode.active = false;
if (upIconIndexs.indexOf(index) != -1 || iconIndex == 0) {
if (iconIndex == 0) {
roller_scatter.addChild(iconPre)
} else if (upIconIndexs.indexOf(index) != -1) {
roller_wins.addChild(iconPre);
} else {
roller_normal.addChild(iconPre);
}
iconPre.active = true;
let iconPosition = this.getIconPosition(index);
iconPre.setPosition(iconPosition);
@ -490,8 +496,8 @@ export class HistoryDetail extends Component {
let node_win_multiplier_1 = content.getChildByName("node_win_multiplier_1")
node_win_multiplier_1.active = false;
if (winInfo != null) {
if (pan.RoundInfo.Mul > 1) {
if (winInfo[0] != null) {
if (pan.RoundInfo && pan.RoundInfo.Mul > 1) {
// let mulDesc = winInfo.MulDesc;
let txt_win_multiplier = node_win_multiplier.getChildByName("txt_win_multiplier")
txt_win_multiplier.getComponent(Label).string = getTranslate(this.dict, "Win Multiplier") + " x " + pan.RoundInfo.Mul;