update dc top bg

This commit is contained in:
2025-05-22 18:16:23 +08:00
parent b3681e5c1e
commit 4df55f9031
6 changed files with 2 additions and 22 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 216 KiB

After

Width:  |  Height:  |  Size: 211 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 173 KiB

After

Width:  |  Height:  |  Size: 155 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 539 KiB

View File

@@ -1,6 +0,0 @@
{
"uuid": "56e0b9d3-d4ea-4e9d-9052-b67612598495",
"importer": {
"textureType": 2
}
}

View File

@@ -22,8 +22,7 @@ export const respath = {
home_top_dc_bg_normal: "atlas/images/bg_dc_top1.png",
home_top_dc_bg_finish: "atlas/images/bg_dc_top2.png",
dc_top_bg_normal: "atlas/images/img_dc_bg1.png",
dc_top_bg_day_finish: "atlas/images/img_dc_bg2.png",
dc_top_bg_normal: "atlas/images/img_dc_bg2.png",
dc_top_bg_month_finish: "atlas/images/img_dc_finished.png",

View File

@@ -165,22 +165,9 @@ export class DailyChallenge extends Laya.Script {
if (starCount >= info.dayCount) {
this.bg_dc.skin = respath.dc_top_bg_month_finish
}
else {
if (info.year == nowYear && info.month == nowMonth) {//当前月份
var stageID = `${info.year}-${info.month}-${nowDay}`
var progress = user.get_done(stageID)
console.log("progress >>>>>>>>>>>>>", stageID, progress)
if (progress >= 1) {
this.bg_dc.skin = respath.dc_top_bg_day_finish
}
else {
this.bg_dc.skin = respath.dc_top_bg_normal
}
}
else {
this.bg_dc.skin = respath.dc_top_bg_normal
}
}
this.label_year.text = info.year.toString()
this.label_month.text = config.MONTH_FULLNAMES[info.month-1]
this.label_star.text = `${starCount}/${info.dayCount}`