修改icon和logo

This commit is contained in:
2026-05-19 14:16:28 +08:00
parent 0429e9ebfc
commit 1ec932b3e3
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": {
"__type__": "cc.Size",
"width": 783,
"width": 782,
"height": 754
},
"_anchorPoint": {
@@ -12196,6 +12196,12 @@
"game_name": {
"__id__": 354
},
"game_logo": {
"__id__": 351
},
"game_logo_bg": {
"__id__": 345
},
"_id": ""
},
{

View File

@@ -40,6 +40,12 @@ export class PageMain extends BaseView {
/** 游戏名 */
@property(Node)
game_name: Node = null;
/** 奖励icon */
@property(Sprite)
game_logo: Sprite = null!;
/** 奖励icon */
@property(Sprite)
game_logo_bg: Sprite = null!;
/** 是否可以开始游戏 */
private _canStart = true;
@@ -52,6 +58,16 @@ export class PageMain extends BaseView {
this.lab_remain.string = "CHANCE:<color=#ff5656>" + USERDATA.point.toString() + "</color>"
this.initRw()
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)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 973 KiB

After

Width:  |  Height:  |  Size: 166 KiB

View File

@@ -42,11 +42,11 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetX": 0.5,
"offsetY": 0,
"trimX": 0,
"trimX": 1,
"trimY": 0,
"width": 783,
"width": 782,
"height": 754,
"rawWidth": 783,
"rawHeight": 754,
@@ -61,16 +61,16 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-391.5,
-391,
-377,
0,
391.5,
391,
-377,
0,
-391.5,
-391,
377,
0,
391.5,
391,
377,
0
],
@@ -83,32 +83,32 @@
3
],
"uv": [
0,
1,
754,
783,
754,
0,
1,
0,
783,
0
],
"nuv": [
0,
0.001277139208173691,
0,
1,
0,
0,
0.001277139208173691,
1,
1,
1
],
"minPos": [
-391.5,
-391,
-377,
0
],
"maxPos": [
391.5,
391,
377,
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 description : string = "";
/* 游戏logo */
public logo : string = "";
public logo_back : string = "";
private constructor(){}
static get Instance(){