Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c3b80943c2 |
@@ -8418,7 +8418,7 @@
|
|||||||
},
|
},
|
||||||
"_type": 0,
|
"_type": 0,
|
||||||
"_fillType": 0,
|
"_fillType": 0,
|
||||||
"_sizeMode": 1,
|
"_sizeMode": 0,
|
||||||
"_fillCenter": {
|
"_fillCenter": {
|
||||||
"__type__": "cc.Vec2",
|
"__type__": "cc.Vec2",
|
||||||
"x": 0,
|
"x": 0,
|
||||||
@@ -12196,6 +12196,12 @@
|
|||||||
"game_name": {
|
"game_name": {
|
||||||
"__id__": 354
|
"__id__": 354
|
||||||
},
|
},
|
||||||
|
"game_logo": {
|
||||||
|
"__id__": 351
|
||||||
|
},
|
||||||
|
"game_logo_bg": {
|
||||||
|
"__id__": 345
|
||||||
|
},
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -40,6 +40,12 @@ export class PageMain extends BaseView {
|
|||||||
/** 游戏名 */
|
/** 游戏名 */
|
||||||
@property(Node)
|
@property(Node)
|
||||||
game_name: Node = null;
|
game_name: Node = null;
|
||||||
|
/** 奖励icon */
|
||||||
|
@property(Sprite)
|
||||||
|
game_logo: Sprite = null!;
|
||||||
|
/** 奖励icon */
|
||||||
|
@property(Sprite)
|
||||||
|
game_logo_bg: Sprite = null!;
|
||||||
|
|
||||||
/** 是否可以开始游戏 */
|
/** 是否可以开始游戏 */
|
||||||
private _canStart = true;
|
private _canStart = true;
|
||||||
@@ -52,6 +58,15 @@ export class PageMain extends BaseView {
|
|||||||
this.lab_remain.string = "CHANCE:<color=#ff5656>" + USERDATA.point.toString() + "</color>"
|
this.lab_remain.string = "CHANCE:<color=#ff5656>" + USERDATA.point.toString() + "</color>"
|
||||||
this.initRw()
|
this.initRw()
|
||||||
this.startFloatingAnimation()
|
this.startFloatingAnimation()
|
||||||
|
|
||||||
|
// 加载配置的logo
|
||||||
|
if (USERDATA.logo && this.game_logo) {
|
||||||
|
Tools.remoteLoadSprite(USERDATA.logo, this.game_logo)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (USERDATA.logo_back && this.game_logo_bg) {
|
||||||
|
Tools.remoteLoadSprite(USERDATA.logo_back, this.game_logo_bg)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 界面关闭时的相关逻辑写在这(已经关闭的界面不会触发onHide)
|
// 界面关闭时的相关逻辑写在这(已经关闭的界面不会触发onHide)
|
||||||
|
|||||||
@@ -13,6 +13,10 @@ class UserData {
|
|||||||
/** 游戏描述 */
|
/** 游戏描述 */
|
||||||
public description : string = "";
|
public description : string = "";
|
||||||
|
|
||||||
|
/* 游戏logo */
|
||||||
|
public logo : string = "";
|
||||||
|
public logo_back : string = "";
|
||||||
|
|
||||||
private constructor(){}
|
private constructor(){}
|
||||||
static get Instance(){
|
static get Instance(){
|
||||||
if(UserData.instance == null){
|
if(UserData.instance == null){
|
||||||
|
|||||||
Reference in New Issue
Block a user