调整UI细节

This commit is contained in:
2025-05-20 20:17:47 +08:00
parent e1671a6b68
commit 7b519c2424
10 changed files with 1623 additions and 1622 deletions

View File

@@ -17,6 +17,8 @@ export class Home extends Laya.Script {
public bg_dc: Laya.Image;
@property(Laya.Label)
public label_dc_title: Laya.Label;
@property(Laya.Label)
public label_dc_date: Laya.Label;
@property(Laya.Sprite)
public btn_play: Laya.Sprite;
@property(Laya.Sprite)
@@ -43,11 +45,18 @@ export class Home extends Laya.Script {
var dayNow = new Date().getDate()
var stageID = `${year}-${month}-${dayNow}`
if (user.get_doneCountBydate(year, month) >= 31)
if (user.get_doneCountBydate(year, month) >= 31) {
this.bg_dc.skin = respath.home_top_dc_bg_finish
else
this.label_dc_title.color = "#ffffff"
this.label_dc_date.color = "#ffffff"
}
else {
this.bg_dc.skin = respath.home_top_dc_bg_normal
this.label_dc_title.text = `${config.MONTH_ABBRS[month-1]} ${dayNow}`
this.label_dc_title.color = "#2d3138"
this.label_dc_date.color = "#2d3138"
}
this.label_dc_date.text = `${config.MONTH_ABBRS[month-1]} ${dayNow}`
var progress = user.get_done(stageID)
if (progress <= 0) {