feat: 支持首页 UI

This commit is contained in:
richarjiang
2026-04-27 09:29:50 +08:00
parent 950572ad74
commit fbea31b9ea
22 changed files with 2201 additions and 506 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

@@ -2,7 +2,7 @@
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "010e6809-3636-4c23-8403-1424c771f0f8",
"uuid": "02047ea3-2a13-4f17-b4dd-5aefa0e182dc",
"files": [
".json",
".png"
@@ -10,14 +10,14 @@
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "010e6809-3636-4c23-8403-1424c771f0f8@6c48a",
"displayName": "startGame",
"uuid": "02047ea3-2a13-4f17-b4dd-5aefa0e182dc@6c48a",
"displayName": "HomeButtonGreen",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "010e6809-3636-4c23-8403-1424c771f0f8",
"imageUuidOrDatabaseUri": "02047ea3-2a13-4f17-b4dd-5aefa0e182dc",
"isUuid": true,
"visible": false,
"minfilter": "linear",
@@ -34,8 +34,8 @@
},
"f9941": {
"importer": "sprite-frame",
"uuid": "010e6809-3636-4c23-8403-1424c771f0f8@f9941",
"displayName": "startGame",
"uuid": "02047ea3-2a13-4f17-b4dd-5aefa0e182dc@f9941",
"displayName": "HomeButtonGreen",
"id": "f9941",
"name": "spriteFrame",
"userData": {
@@ -45,10 +45,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 216,
"height": 107,
"rawWidth": 216,
"rawHeight": 107,
"width": 488,
"height": 197,
"rawWidth": 488,
"rawHeight": 197,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
@@ -60,17 +60,17 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-108,
-53.5,
-244,
-98.5,
0,
108,
-53.5,
244,
-98.5,
0,
-108,
53.5,
-244,
98.5,
0,
108,
53.5,
244,
98.5,
0
],
"indexes": [
@@ -83,12 +83,12 @@
],
"uv": [
0,
107,
216,
107,
197,
488,
197,
0,
0,
216,
488,
0
],
"nuv": [
@@ -102,18 +102,18 @@
1
],
"minPos": [
-108,
-53.5,
-244,
-98.5,
0
],
"maxPos": [
108,
53.5,
244,
98.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "010e6809-3636-4c23-8403-1424c771f0f8@6c48a",
"imageUuidOrDatabaseUri": "02047ea3-2a13-4f17-b4dd-5aefa0e182dc@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
@@ -129,6 +129,6 @@
"type": "sprite-frame",
"fixAlphaTransparencyArtifacts": false,
"hasAlpha": true,
"redirect": "010e6809-3636-4c23-8403-1424c771f0f8@6c48a"
"redirect": "02047ea3-2a13-4f17-b4dd-5aefa0e182dc@6c48a"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "2270362e-66d7-4d0f-ab51-b5cbca25a768",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "2270362e-66d7-4d0f-ab51-b5cbca25a768@6c48a",
"displayName": "HomeButtonOrange",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "2270362e-66d7-4d0f-ab51-b5cbca25a768",
"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": "2270362e-66d7-4d0f-ab51-b5cbca25a768@f9941",
"displayName": "HomeButtonOrange",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 488,
"height": 197,
"rawWidth": 488,
"rawHeight": 197,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-244,
-98.5,
0,
244,
-98.5,
0,
-244,
98.5,
0,
244,
98.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
197,
488,
197,
0,
0,
488,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-244,
-98.5,
0
],
"maxPos": [
244,
98.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "2270362e-66d7-4d0f-ab51-b5cbca25a768@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"fixAlphaTransparencyArtifacts": false,
"hasAlpha": true,
"redirect": "2270362e-66d7-4d0f-ab51-b5cbca25a768@6c48a"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

View File

@@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "12eb7a16-3f31-40d8-a9cd-30e18900a3a3",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "12eb7a16-3f31-40d8-a9cd-30e18900a3a3@6c48a",
"displayName": "friendChallenge",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "12eb7a16-3f31-40d8-a9cd-30e18900a3a3",
"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": "12eb7a16-3f31-40d8-a9cd-30e18900a3a3@f9941",
"displayName": "friendChallenge",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -8.5,
"trimX": 170,
"trimY": 243,
"width": 684,
"height": 555,
"rawWidth": 1024,
"rawHeight": 1024,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-342,
-277.5,
0,
342,
-277.5,
0,
-342,
277.5,
0,
342,
277.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
170,
781,
854,
781,
170,
226,
854,
226
],
"nuv": [
0.166015625,
0.220703125,
0.833984375,
0.220703125,
0.166015625,
0.7626953125,
0.833984375,
0.7626953125
],
"minPos": [
-342,
-277.5,
0
],
"maxPos": [
342,
277.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "12eb7a16-3f31-40d8-a9cd-30e18900a3a3@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"fixAlphaTransparencyArtifacts": false,
"hasAlpha": true,
"redirect": "12eb7a16-3f31-40d8-a9cd-30e18900a3a3@6c48a"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB