继续补充UI
This commit is contained in:
@@ -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