继续补充UI
This commit is contained in:
@@ -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",
|
||||
|
||||
|
||||
@@ -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 })
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user