测试模式非本月10号通关之后即可获得奖杯
This commit is contained in:
@@ -191,8 +191,7 @@ export class DailyChallenge extends Laya.Script {
|
||||
|
||||
this.trophy_icon.skin = info.icon_res
|
||||
// 设置背景
|
||||
const starCount = user.get_doneCountByDate(info.year, info.month)
|
||||
if (starCount >= info.dayCount) {
|
||||
if (user.get_trophyRecord(info.year, info.month)) {
|
||||
this.bg_dc.skin = respath.dc_top_bg_month_finish
|
||||
this.trophy_light.visible = true
|
||||
this.trophy_icon.gray = false
|
||||
@@ -201,6 +200,7 @@ export class DailyChallenge extends Laya.Script {
|
||||
this.trophy_light.visible = false
|
||||
this.trophy_icon.gray = true
|
||||
}
|
||||
const starCount = user.get_doneCountByDate(info.year, info.month)
|
||||
this.label_year.text = info.year.toString()
|
||||
this.label_month.text = config.MONTH_FULLNAMES[info.month - 1]
|
||||
this.label_star.text = `${starCount}/${info.dayCount}`
|
||||
|
||||
@@ -27,7 +27,7 @@ export class TrophyUnit extends Laya.Script {
|
||||
this.icon.skin = info.icon_res
|
||||
this.label_count.text = `${starCount}/${info.dayCount}`
|
||||
this.label_month.text = config.MONTH_ABBRS[info.month - 1]
|
||||
if (starCount >= info.dayCount) {
|
||||
if (user.get_trophyRecord(info.year, info.month)) {
|
||||
this.bg_light.skin = respath.trophy_bg_light_gold
|
||||
this.icon.gray = false
|
||||
this.label_month.color = "#2d3138"
|
||||
|
||||
Reference in New Issue
Block a user