添加粒子效果

This commit is contained in:
2025-06-05 20:00:16 +08:00
parent 04ffc99c1a
commit a5880633a6
23 changed files with 428 additions and 29 deletions

View File

@@ -190,14 +190,13 @@ export class DailyChallenge extends Laya.Script {
const nowDay = new Date().getDate()
ResourceManager.getInstance().loadTexture(info.icon_res, this.trophy_icon)
ResourceManager.getInstance().loadTexture(respath.dc_render_texture, this.trophy_light)
// 设置背景
if (user.get_trophyRecord(info.year, info.month)) {
ResourceManager.getInstance().loadTexture(respath.dc_top_bg_finish, this.bg_dc)
this.trophy_light.visible = true
this.trophy_icon.gray = false
} else {
ResourceManager.getInstance().loadTexture(respath.dc_top_bg_normal, this.bg_dc)
this.trophy_light.visible = false
this.trophy_icon.gray = true
}
const starCount = user.get_doneCountByDate(info.year, info.month)