龙虎榜修改

This commit is contained in:
TJH 2025-12-30 12:34:06 +08:00
parent 9ad38a43b5
commit 6ea378001e
2 changed files with 7 additions and 6 deletions

View File

@ -1092,9 +1092,9 @@
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 90,
"g": 6,
"b": 7,
"r": 221,
"g": 162,
"b": 154,
"a": 255
},
"_string": "4",

View File

@ -4,6 +4,7 @@ import { Palette } from './Palette';
import { SlotRankingDataManager } from './SlotRankingDataManager';
import { callGameApiForRank } from 'db://assets/Loading/scripts/comm';
import { AudioManager } from 'db://assets/Loading/scripts/manager/AudioManager';
import { I18nManager } from 'db://assets/Loading/scripts/manager/I18nManager';
const { ccclass, property } = _decorator;
@ -208,19 +209,19 @@ export class RewardList extends Component {
if (this.rewardsData.DayRanks && this.rewardsData.DayRanks.length > 0) {
for (let item of this.rewardsData.DayRanks) {
this.selfRewardsList.push({ ...item, TypeLabel: '日榜' });
this.selfRewardsList.push({ ...item, TypeLabel: I18nManager.instance.t('Daily Ranking') });
}
}
if (this.rewardsData.WeekRanks && this.rewardsData.WeekRanks.length > 0) {
for (let item of this.rewardsData.WeekRanks) {
this.selfRewardsList.push({ ...item, TypeLabel: '周榜' });
this.selfRewardsList.push({ ...item, TypeLabel: I18nManager.instance.t('Weekly Ranking') });
}
}
if (this.rewardsData.MonthRanks && this.rewardsData.MonthRanks.length > 0) {
for (let item of this.rewardsData.MonthRanks) {
this.selfRewardsList.push({ ...item, TypeLabel: '月榜' });
this.selfRewardsList.push({ ...item, TypeLabel: I18nManager.instance.t('Monthly Ranking') });
}
}