继续补充UI

This commit is contained in:
2025-06-12 17:29:23 +08:00
parent aa7c36c11a
commit d16d57eef6
9 changed files with 65 additions and 184 deletions

View File

@@ -50,6 +50,8 @@ export const respath = {
// ===============================
bg_done: "images/bg_done.png",
bg_done_light: "images/bg_done_light.png",
bg_done_top: "images/bg_done_top.png",
icon_star1: "images/star.png",
icon_star2: "images/star2.png",

View File

@@ -56,6 +56,8 @@ export class ResourceManager {
}
this.resources.push({ url: respath.bg_done, type: Laya.Loader.IMAGE })
this.resources.push({ url: respath.bg_done_light, type: Laya.Loader.IMAGE })
this.resources.push({ url: respath.bg_done_top, type: Laya.Loader.IMAGE })
this.resources.push({ url: respath.icon_star1, type: Laya.Loader.IMAGE })
this.resources.push({ url: respath.icon_star2, type: Laya.Loader.IMAGE })

View File

@@ -19,6 +19,9 @@ export class GameDone extends Laya.Script {
@property(Laya.Image)
public obj_light: Laya.Image
@property(Laya.Image)
public obj_top: Laya.Image
@property(Laya.Box)
public obj_panel: Laya.Box
@@ -54,6 +57,8 @@ export class GameDone extends Laya.Script {
onAwake(): void {
ResourceManager.getInstance().loadTexture(respath.bg_done, this.bg)
ResourceManager.getInstance().loadTexture(respath.bg_done_light, this.obj_light)
ResourceManager.getInstance().loadTexture(respath.bg_done_top, this.obj_top)
ResourceManager.getInstance().loadTexture(respath.icon_star2, this.star1)
ResourceManager.getInstance().loadTexture(respath.icon_star2, this.star2)
ResourceManager.getInstance().loadTexture(respath.icon_star2, this.star3)

View File

@@ -63,7 +63,7 @@ export class TrophyClaim extends Laya.Script {
}
}
this.label_date.text = `${config.MONTH_ABBRS[record.month - 1]} ${record.day},${record.year}`
this.label_date.text = `${config.MONTH_ABBRS[record.month - 1]} ${record.day}, ${record.year}`
this.btn_close.on(Laya.Event.CLICK, this, () => {
this.owner.destroy()

View File

@@ -27,7 +27,7 @@ export class TrophyShow extends Laya.Script {
}
}
this.label_date.text = `${config.MONTH_ABBRS[record.month - 1]} ${record.day},${record.year}`
this.label_date.text = `${config.MONTH_ABBRS[record.month - 1]} ${record.day}, ${record.year}`
this.btn_close.on(Laya.Event.CLICK, this, () => {
this.owner.destroy()