添加粒子效果

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

@@ -53,6 +53,7 @@ export const respath = {
home_top_dc_bg_finish: "atlas/images/bg_dc_top2.png",
dc_top_bg_normal: "atlas/images/img_dc_bg2.png",
dc_top_bg_finish: "atlas/images/img_dc_finished.png",
dc_render_texture: "atlas/effect/dc_render_texture.rendertexture",
trophy_bg_light_gold: "atlas/trophys/img_trophy_bg_light_gold.png",
trophy_bg_light_grey: "atlas/trophys/img_trophy_bg_light_gray.png",

View File

@@ -37,6 +37,7 @@ export class ResourceManager {
this.resources.push({ url: respath.home_top_dc_bg_finish, type: Laya.Loader.IMAGE })
this.resources.push({ url: respath.dc_top_bg_normal, type: Laya.Loader.IMAGE })
this.resources.push({ url: respath.dc_top_bg_finish, type: Laya.Loader.IMAGE })
this.resources.push({ url: respath.dc_render_texture })
this.resources.push({ url: respath.trophy_bg_light_gold, type: Laya.Loader.IMAGE })
this.resources.push({ url: respath.trophy_bg_light_grey, type: Laya.Loader.IMAGE })

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)