Congratulations
This commit is contained in:
@@ -59,6 +59,7 @@ export const respath = {
|
||||
bg_done_top: "images/bg_done_top.png",
|
||||
icon_star1: "images/star.png",
|
||||
icon_star2: "images/star2.png",
|
||||
Congratulations: "images/Congratulations.png",
|
||||
|
||||
home_top_dc_bg_normal: "images/bg_dc_top1.png",
|
||||
home_top_dc_bg_finish: "images/bg_dc_top2.png",
|
||||
|
||||
@@ -60,6 +60,7 @@ export class ResourceManager {
|
||||
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 })
|
||||
this.resources.push({ url: respath.Congratulations, type: Laya.Loader.IMAGE })
|
||||
|
||||
this.resources.push({ url: respath.home_top_dc_bg_normal, type: Laya.Loader.IMAGE })
|
||||
this.resources.push({ url: respath.home_top_dc_bg_finish, type: Laya.Loader.IMAGE })
|
||||
|
||||
@@ -37,6 +37,9 @@ export class GameDone extends Laya.Script {
|
||||
@property(Laya.Image)
|
||||
public star4: Laya.Image
|
||||
|
||||
@property(Laya.Image)
|
||||
public img_title: Laya.Image
|
||||
|
||||
@property(Laya.Label)
|
||||
public label_diffucuty: Laya.Label
|
||||
|
||||
@@ -63,6 +66,8 @@ export class GameDone extends Laya.Script {
|
||||
ResourceManager.getInstance().loadTexture(respath.icon_star2, this.star2)
|
||||
ResourceManager.getInstance().loadTexture(respath.icon_star2, this.star3)
|
||||
ResourceManager.getInstance().loadTexture(respath.icon_star1, this.star4)
|
||||
if (this.img_title)
|
||||
ResourceManager.getInstance().loadTexture(respath.Congratulations, this.img_title)
|
||||
|
||||
this.owner.x = 0
|
||||
this.owner.y = 0
|
||||
|
||||
Reference in New Issue
Block a user