iconmsg修改
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m15s

This commit is contained in:
TJH 2025-12-29 11:00:56 +08:00
parent 510bd4a1b9
commit 166a896c3e
10 changed files with 696 additions and 268 deletions

View File

@ -5592,6 +5592,24 @@
"rightNode": {
"__id__": 114
},
"zxkFrames": [
{
"__uuid__": "fb975d49-84bd-44ce-93f5-35b625140fd6@f9941",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "479c23d5-6080-4e69-8324-3fc6ed99a421@f9941",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "22c56a64-39c1-4d5b-853a-ed171747f682@f9941",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "c38543d4-1cff-4464-9c3b-d5db88832ca3@f9941",
"__expectedType__": "cc.SpriteFrame"
}
],
"_id": ""
},
{

File diff suppressed because it is too large Load Diff

View File

@ -1413,8 +1413,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 300,
"height": 110
"width": 303,
"height": 92
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1455,7 +1455,7 @@
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

View File

@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "479c23d5-6080-4e69-8324-3fc6ed99a421",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "479c23d5-6080-4e69-8324-3fc6ed99a421@6c48a",
"displayName": "zxk_02",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "479c23d5-6080-4e69-8324-3fc6ed99a421",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "479c23d5-6080-4e69-8324-3fc6ed99a421@f9941",
"displayName": "zxk_02",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 568,
"height": 403,
"rawWidth": 568,
"rawHeight": 403,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-284,
-201.5,
0,
284,
-201.5,
0,
-284,
201.5,
0,
284,
201.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
403,
568,
403,
0,
0,
568,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-284,
-201.5,
0
],
"maxPos": [
284,
201.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "479c23d5-6080-4e69-8324-3fc6ed99a421@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "479c23d5-6080-4e69-8324-3fc6ed99a421@6c48a"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

View File

@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "22c56a64-39c1-4d5b-853a-ed171747f682",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "22c56a64-39c1-4d5b-853a-ed171747f682@6c48a",
"displayName": "zxk_03",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "22c56a64-39c1-4d5b-853a-ed171747f682",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "22c56a64-39c1-4d5b-853a-ed171747f682@f9941",
"displayName": "zxk_03",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 568,
"height": 565,
"rawWidth": 568,
"rawHeight": 565,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-284,
-282.5,
0,
284,
-282.5,
0,
-284,
282.5,
0,
284,
282.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
565,
568,
565,
0,
0,
568,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-284,
-282.5,
0
],
"maxPos": [
284,
282.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "22c56a64-39c1-4d5b-853a-ed171747f682@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "22c56a64-39c1-4d5b-853a-ed171747f682@6c48a"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 KiB

View File

@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "c38543d4-1cff-4464-9c3b-d5db88832ca3",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "c38543d4-1cff-4464-9c3b-d5db88832ca3@6c48a",
"displayName": "zxk_04",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "c38543d4-1cff-4464-9c3b-d5db88832ca3",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "c38543d4-1cff-4464-9c3b-d5db88832ca3@f9941",
"displayName": "zxk_04",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 568,
"height": 749,
"rawWidth": 568,
"rawHeight": 749,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-284,
-374.5,
0,
284,
-374.5,
0,
-284,
374.5,
0,
284,
374.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
749,
568,
749,
0,
0,
568,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-284,
-374.5,
0
],
"maxPos": [
284,
374.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "c38543d4-1cff-4464-9c3b-d5db88832ca3@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "c38543d4-1cff-4464-9c3b-d5db88832ca3@6c48a"
}
}

View File

@ -14,6 +14,9 @@ export class IconMsg extends Component {
@property(Node)
rightNode: Node = null;
@property([SpriteFrame])
zxkFrames: SpriteFrame[] = [];
iconComponent: Icon = null;
ui_payout: Node = null;
@ -60,6 +63,9 @@ export class IconMsg extends Component {
this.ui_payout_wild.getComponent(UITransform).height = this.HEIGHT_MAP[iconComponent.lHeight];
this.ui_payout_scatter.getComponent(UITransform).height = this.HEIGHT_MAP[iconComponent.lHeight];
this.ui_payout.getComponent(Sprite).spriteFrame = this.zxkFrames[iconComponent.lHeight - 1]
this.ui_payout_wild.getComponent(Sprite).spriteFrame = this.zxkFrames[iconComponent.lHeight - 1]
this.ui_payout_scatter.getComponent(Sprite).spriteFrame = this.zxkFrames[iconComponent.lHeight - 1]
this.right_ui_payout = this.rightNode.getChildByName('ui_payout');
this.right_ui_payout_wild = this.rightNode.getChildByName('ui_payout_wild');
@ -73,6 +79,9 @@ export class IconMsg extends Component {
this.right_ui_payout_wild.getComponent(UITransform).height = this.HEIGHT_MAP[iconComponent.lHeight];
this.right_ui_payout_scatter.getComponent(UITransform).height = this.HEIGHT_MAP[iconComponent.lHeight];
this.right_ui_payout.getComponent(Sprite).spriteFrame = this.zxkFrames[iconComponent.lHeight - 1]
this.right_ui_payout_wild.getComponent(Sprite).spriteFrame = this.zxkFrames[iconComponent.lHeight - 1]
this.right_ui_payout_scatter.getComponent(Sprite).spriteFrame = this.zxkFrames[iconComponent.lHeight - 1]
this.ui_payout.active = false;
this.ui_payout_wild.active = false;