Compare commits

1 Commits
main ... v2

Author SHA1 Message Date
1ec932b3e3 修改icon和logo 2026-05-19 14:16:28 +08:00
7 changed files with 39 additions and 14 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 202 KiB

After

Width:  |  Height:  |  Size: 166 KiB

View File

@@ -8376,7 +8376,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 783, "width": 782,
"height": 754 "height": 754
}, },
"_anchorPoint": { "_anchorPoint": {
@@ -12196,6 +12196,12 @@
"game_name": { "game_name": {
"__id__": 354 "__id__": 354
}, },
"game_logo": {
"__id__": 351
},
"game_logo_bg": {
"__id__": 345
},
"_id": "" "_id": ""
}, },
{ {

View File

@@ -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,16 @@ 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)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 973 KiB

After

Width:  |  Height:  |  Size: 166 KiB

View File

@@ -42,11 +42,11 @@
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0.5,
"offsetY": 0, "offsetY": 0,
"trimX": 0, "trimX": 1,
"trimY": 0, "trimY": 0,
"width": 783, "width": 782,
"height": 754, "height": 754,
"rawWidth": 783, "rawWidth": 783,
"rawHeight": 754, "rawHeight": 754,
@@ -61,16 +61,16 @@
"meshType": 0, "meshType": 0,
"vertices": { "vertices": {
"rawPosition": [ "rawPosition": [
-391.5, -391,
-377, -377,
0, 0,
391.5, 391,
-377, -377,
0, 0,
-391.5, -391,
377, 377,
0, 0,
391.5, 391,
377, 377,
0 0
], ],
@@ -83,32 +83,32 @@
3 3
], ],
"uv": [ "uv": [
0, 1,
754, 754,
783, 783,
754, 754,
0, 1,
0, 0,
783, 783,
0 0
], ],
"nuv": [ "nuv": [
0, 0.001277139208173691,
0, 0,
1, 1,
0, 0,
0, 0.001277139208173691,
1, 1,
1, 1,
1 1
], ],
"minPos": [ "minPos": [
-391.5, -391,
-377, -377,
0 0
], ],
"maxPos": [ "maxPos": [
391.5, 391,
377, 377,
0 0
] ]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 634 KiB

After

Width:  |  Height:  |  Size: 534 KiB

View File

@@ -12,6 +12,9 @@ class UserData {
public prize_list : any[] = []; public prize_list : any[] = [];
/** 游戏描述 */ /** 游戏描述 */
public description : string = ""; public description : string = "";
/* 游戏logo */
public logo : string = "";
public logo_back : string = "";
private constructor(){} private constructor(){}
static get Instance(){ static get Instance(){