Compare commits

...

2 Commits

Author SHA1 Message Date
TJH
1daffc9c3e ui调整
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
2025-12-29 10:45:13 +08:00
TJH
6ea1408f2c ui调整 2025-12-29 10:34:08 +08:00
30 changed files with 5299 additions and 4618 deletions

View File

@ -227,12 +227,12 @@
"a": 255
},
"_spriteFrame": {
"__uuid__": "e9a11129-6b1c-4fb1-9583-7e9be340d000@f9941",
"__uuid__": "47aaff53-5060-4253-85db-1c3f2847e746@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
@ -271,7 +271,7 @@
"__id__": 1
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 11
@ -1419,11 +1419,11 @@
"b": 255,
"a": 255
},
"_string": "65.2",
"_string": "65.2222222",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 35,
"_fontSize": 35,
"_actualFontSize": 26,
"_fontSize": 26,
"_fontFamily": "Arial",
"_lineHeight": 200,
"_overflow": 2,

Binary file not shown.

After

Width:  |  Height:  |  Size: 728 KiB

View File

@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "47aaff53-5060-4253-85db-1c3f2847e746",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "47aaff53-5060-4253-85db-1c3f2847e746@6c48a",
"displayName": "bigwin_di",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "47aaff53-5060-4253-85db-1c3f2847e746",
"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": "47aaff53-5060-4253-85db-1c3f2847e746@f9941",
"displayName": "bigwin_di",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1080,
"height": 2360,
"rawWidth": 1080,
"rawHeight": 2360,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-540,
-1180,
0,
540,
-1180,
0,
-540,
1180,
0,
540,
1180,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
2360,
1080,
2360,
0,
0,
1080,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-540,
-1180,
0
],
"maxPos": [
540,
1180,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "47aaff53-5060-4253-85db-1c3f2847e746@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "47aaff53-5060-4253-85db-1c3f2847e746@6c48a"
}
}

View File

@ -1884,8 +1884,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 639,
"height": 175
"width": 721,
"height": 189
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1921,7 +1921,7 @@
"a": 255
},
"_spriteFrame": {
"__uuid__": "a791e7f5-4c59-4365-84ad-ba6f8233341c@f9941",
"__uuid__": "c3b4d3a9-cb9e-42e0-882e-cbbe0235a770@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
import { ExtrapolationMode } from "cc";
export let ICON_WIDTH = 165;
export let ICON_HEIGHT = 145;
export let ICON_WIDTH = 173;
export let ICON_HEIGHT = 166;
// 图标赔率
export let ICON_RATE = {

View File

@ -10,17 +10,17 @@ export const IconEventBus = new EventTarget();
// 高度映射表 - 减少重复计算
let HEIGHT_MAP = {
1: 240 / 1.35,
2: 386 / 1.15,
3: 528 / 1.05,
4: 674
1: 166,
2: 332,
3: 498,
4: 670
};
let BTN_HEIGHT_MAP = {
1: 145,
2: 145 * 2,
3: 145 * 3,
4: 145 * 4
1: 166,
2: 332,
3: 498,
4: 670
};
// 静态共享的Vec3对象 - 减少GC压力

BIN
assets/resources/i18nSprite/da/9.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 482 KiB

After

Width:  |  Height:  |  Size: 37 KiB

View File

@ -44,12 +44,12 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 2,
"trimY": 2,
"width": 949,
"height": 125,
"rawWidth": 953,
"rawHeight": 129,
"trimX": 0,
"trimY": 0,
"width": 724,
"height": 189,
"rawWidth": 724,
"rawHeight": 189,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
@ -61,17 +61,17 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-474.5,
-62.5,
-362,
-94.5,
0,
474.5,
-62.5,
362,
-94.5,
0,
-474.5,
62.5,
-362,
94.5,
0,
474.5,
62.5,
362,
94.5,
0
],
"indexes": [
@ -83,33 +83,33 @@
3
],
"uv": [
2,
127,
951,
127,
2,
2,
951,
2
0,
189,
724,
189,
0,
0,
724,
0
],
"nuv": [
0.002098635886673662,
0.015503875968992248,
0.9979013641133263,
0.015503875968992248,
0.002098635886673662,
0.9844961240310077,
0.9979013641133263,
0.9844961240310077
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-474.5,
-62.5,
-362,
-94.5,
0
],
"maxPos": [
474.5,
62.5,
362,
94.5,
0
]
},

BIN
assets/resources/i18nSprite/de/9.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 440 KiB

After

Width:  |  Height:  |  Size: 37 KiB

View File

@ -44,12 +44,12 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 2,
"trimY": 2,
"width": 970,
"height": 111,
"rawWidth": 974,
"rawHeight": 115,
"trimX": 0,
"trimY": 0,
"width": 726,
"height": 175,
"rawWidth": 726,
"rawHeight": 175,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
@ -61,17 +61,17 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-485,
-55.5,
-363,
-87.5,
0,
485,
-55.5,
363,
-87.5,
0,
-485,
55.5,
-363,
87.5,
0,
485,
55.5,
363,
87.5,
0
],
"indexes": [
@ -83,33 +83,33 @@
3
],
"uv": [
2,
113,
972,
113,
2,
2,
972,
2
0,
175,
726,
175,
0,
0,
726,
0
],
"nuv": [
0.002053388090349076,
0.017391304347826087,
0.997946611909651,
0.017391304347826087,
0.002053388090349076,
0.9826086956521739,
0.997946611909651,
0.9826086956521739
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-485,
-55.5,
-363,
-87.5,
0
],
"maxPos": [
485,
55.5,
363,
87.5,
0
]
},

BIN
assets/resources/i18nSprite/fr/9.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 709 KiB

After

Width:  |  Height:  |  Size: 40 KiB

View File

@ -44,12 +44,12 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 2,
"trimY": 2,
"width": 1007,
"trimX": 0,
"trimY": 0,
"width": 841,
"height": 175,
"rawWidth": 1011,
"rawHeight": 179,
"rawWidth": 841,
"rawHeight": 175,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
@ -61,16 +61,16 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-503.5,
-420.5,
-87.5,
0,
503.5,
420.5,
-87.5,
0,
-503.5,
-420.5,
87.5,
0,
503.5,
420.5,
87.5,
0
],
@ -83,32 +83,32 @@
3
],
"uv": [
2,
177,
1009,
177,
2,
2,
1009,
2
0,
175,
841,
175,
0,
0,
841,
0
],
"nuv": [
0.0019782393669634025,
0.0111731843575419,
0.9980217606330366,
0.0111731843575419,
0.0019782393669634025,
0.9888268156424581,
0.9980217606330366,
0.9888268156424581
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-503.5,
-420.5,
-87.5,
0
],
"maxPos": [
503.5,
420.5,
87.5,
0
]

BIN
assets/resources/i18nSprite/id/9.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 468 KiB

After

Width:  |  Height:  |  Size: 35 KiB

View File

@ -44,12 +44,12 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 2,
"trimY": 2,
"width": 921,
"height": 125,
"rawWidth": 925,
"rawHeight": 129,
"trimX": 0,
"trimY": 0,
"width": 838,
"height": 176,
"rawWidth": 838,
"rawHeight": 176,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
@ -61,17 +61,17 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-460.5,
-62.5,
-419,
-88,
0,
460.5,
-62.5,
419,
-88,
0,
-460.5,
62.5,
-419,
88,
0,
460.5,
62.5,
419,
88,
0
],
"indexes": [
@ -83,33 +83,33 @@
3
],
"uv": [
2,
127,
923,
127,
2,
2,
923,
2
0,
176,
838,
176,
0,
0,
838,
0
],
"nuv": [
0.002162162162162162,
0.015503875968992248,
0.9978378378378379,
0.015503875968992248,
0.002162162162162162,
0.9844961240310077,
0.9978378378378379,
0.9844961240310077
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-460.5,
-62.5,
-419,
-88,
0
],
"maxPos": [
460.5,
62.5,
419,
88,
0
]
},

BIN
assets/resources/i18nSprite/it/9.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 624 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View File

@ -44,12 +44,12 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 2,
"trimY": 2,
"width": 1230,
"height": 125,
"rawWidth": 1234,
"rawHeight": 129,
"trimX": 0,
"trimY": 0,
"width": 721,
"height": 189,
"rawWidth": 721,
"rawHeight": 189,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
@ -61,17 +61,17 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-615,
-62.5,
-360.5,
-94.5,
0,
615,
-62.5,
360.5,
-94.5,
0,
-615,
62.5,
-360.5,
94.5,
0,
615,
62.5,
360.5,
94.5,
0
],
"indexes": [
@ -83,33 +83,33 @@
3
],
"uv": [
2,
127,
1232,
127,
2,
2,
1232,
2
0,
189,
721,
189,
0,
0,
721,
0
],
"nuv": [
0.0016207455429497568,
0.015503875968992248,
0.9983792544570502,
0.015503875968992248,
0.0016207455429497568,
0.9844961240310077,
0.9983792544570502,
0.9844961240310077
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-615,
-62.5,
-360.5,
-94.5,
0
],
"maxPos": [
615,
62.5,
360.5,
94.5,
0
]
},

BIN
assets/resources/i18nSprite/nl/9.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 506 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View File

@ -44,12 +44,12 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 2,
"trimY": 2,
"width": 995,
"height": 125,
"rawWidth": 999,
"rawHeight": 129,
"trimX": 0,
"trimY": 0,
"width": 826,
"height": 189,
"rawWidth": 826,
"rawHeight": 189,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
@ -61,17 +61,17 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-497.5,
-62.5,
-413,
-94.5,
0,
497.5,
-62.5,
413,
-94.5,
0,
-497.5,
62.5,
-413,
94.5,
0,
497.5,
62.5,
413,
94.5,
0
],
"indexes": [
@ -83,33 +83,33 @@
3
],
"uv": [
2,
127,
997,
127,
2,
2,
997,
2
0,
189,
826,
189,
0,
0,
826,
0
],
"nuv": [
0.002002002002002002,
0.015503875968992248,
0.997997997997998,
0.015503875968992248,
0.002002002002002002,
0.9844961240310077,
0.997997997997998,
0.9844961240310077
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-497.5,
-62.5,
-413,
-94.5,
0
],
"maxPos": [
497.5,
62.5,
413,
94.5,
0
]
},

BIN
assets/resources/i18nSprite/ro/9.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 477 KiB

After

Width:  |  Height:  |  Size: 37 KiB

View File

@ -44,12 +44,12 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 2,
"trimY": 2,
"width": 946,
"height": 124,
"rawWidth": 950,
"rawHeight": 128,
"trimX": 0,
"trimY": 0,
"width": 677,
"height": 188,
"rawWidth": 677,
"rawHeight": 188,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
@ -61,17 +61,17 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-473,
-62,
-338.5,
-94,
0,
473,
-62,
338.5,
-94,
0,
-473,
62,
-338.5,
94,
0,
473,
62,
338.5,
94,
0
],
"indexes": [
@ -83,33 +83,33 @@
3
],
"uv": [
2,
126,
948,
126,
2,
2,
948,
2
0,
188,
677,
188,
0,
0,
677,
0
],
"nuv": [
0.002105263157894737,
0.015625,
0.9978947368421053,
0.015625,
0.002105263157894737,
0.984375,
0.9978947368421053,
0.984375
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-473,
-62,
-338.5,
-94,
0
],
"maxPos": [
473,
62,
338.5,
94,
0
]
},

BIN
assets/resources/i18nSprite/ru/9.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 772 KiB

After

Width:  |  Height:  |  Size: 32 KiB

View File

@ -44,12 +44,12 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 2,
"trimY": 2,
"width": 1038,
"height": 185,
"rawWidth": 1042,
"rawHeight": 189,
"trimX": 0,
"trimY": 0,
"width": 873,
"height": 158,
"rawWidth": 873,
"rawHeight": 158,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
@ -61,17 +61,17 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-519,
-92.5,
-436.5,
-79,
0,
519,
-92.5,
436.5,
-79,
0,
-519,
92.5,
-436.5,
79,
0,
519,
92.5,
436.5,
79,
0
],
"indexes": [
@ -83,33 +83,33 @@
3
],
"uv": [
2,
187,
1040,
187,
2,
2,
1040,
2
0,
158,
873,
158,
0,
0,
873,
0
],
"nuv": [
0.0019193857965451055,
0.010582010582010581,
0.9980806142034548,
0.010582010582010581,
0.0019193857965451055,
0.9894179894179894,
0.9980806142034548,
0.9894179894179894
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-519,
-92.5,
-436.5,
-79,
0
],
"maxPos": [
519,
92.5,
436.5,
79,
0
]
},

BIN
assets/resources/i18nSprite/sv/9.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 450 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View File

@ -44,12 +44,12 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 2,
"trimY": 2,
"width": 992,
"height": 111,
"rawWidth": 996,
"rawHeight": 115,
"trimX": 0,
"trimY": 0,
"width": 649,
"height": 175,
"rawWidth": 649,
"rawHeight": 175,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
@ -61,17 +61,17 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-496,
-55.5,
-324.5,
-87.5,
0,
496,
-55.5,
324.5,
-87.5,
0,
-496,
55.5,
-324.5,
87.5,
0,
496,
55.5,
324.5,
87.5,
0
],
"indexes": [
@ -83,33 +83,33 @@
3
],
"uv": [
2,
113,
994,
113,
2,
2,
994,
2
0,
175,
649,
175,
0,
0,
649,
0
],
"nuv": [
0.002008032128514056,
0.017391304347826087,
0.9979919678714859,
0.017391304347826087,
0.002008032128514056,
0.9826086956521739,
0.9979919678714859,
0.9826086956521739
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-496,
-55.5,
-324.5,
-87.5,
0
],
"maxPos": [
496,
55.5,
324.5,
87.5,
0
]
},

BIN
assets/resources/i18nSprite/tr/9.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 509 KiB

After

Width:  |  Height:  |  Size: 41 KiB

View File

@ -44,12 +44,12 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 2,
"trimY": 2,
"width": 995,
"height": 126,
"rawWidth": 999,
"rawHeight": 130,
"trimX": 0,
"trimY": 0,
"width": 807,
"height": 184,
"rawWidth": 807,
"rawHeight": 184,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
@ -61,17 +61,17 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-497.5,
-63,
-403.5,
-92,
0,
497.5,
-63,
403.5,
-92,
0,
-497.5,
63,
-403.5,
92,
0,
497.5,
63,
403.5,
92,
0
],
"indexes": [
@ -83,33 +83,33 @@
3
],
"uv": [
2,
128,
997,
128,
2,
2,
997,
2
0,
184,
807,
184,
0,
0,
807,
0
],
"nuv": [
0.002002002002002002,
0.015384615384615385,
0.997997997997998,
0.015384615384615385,
0.002002002002002002,
0.9846153846153847,
0.997997997997998,
0.9846153846153847
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-497.5,
-63,
-403.5,
-92,
0
],
"maxPos": [
497.5,
63,
403.5,
92,
0
]
},

BIN
assets/resources/i18nSprite/vi/9.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 706 KiB

After

Width:  |  Height:  |  Size: 40 KiB

View File

@ -44,12 +44,12 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 2,
"trimY": 2,
"width": 911,
"height": 193,
"rawWidth": 915,
"rawHeight": 197,
"trimX": 0,
"trimY": 0,
"width": 874,
"height": 187,
"rawWidth": 874,
"rawHeight": 187,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
@ -61,17 +61,17 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-455.5,
-96.5,
-437,
-93.5,
0,
455.5,
-96.5,
437,
-93.5,
0,
-455.5,
96.5,
-437,
93.5,
0,
455.5,
96.5,
437,
93.5,
0
],
"indexes": [
@ -83,33 +83,33 @@
3
],
"uv": [
2,
195,
913,
195,
2,
2,
913,
2
0,
187,
874,
187,
0,
0,
874,
0
],
"nuv": [
0.002185792349726776,
0.01015228426395939,
0.9978142076502732,
0.01015228426395939,
0.002185792349726776,
0.9898477157360406,
0.9978142076502732,
0.9898477157360406
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-455.5,
-96.5,
-437,
-93.5,
0
],
"maxPos": [
455.5,
96.5,
437,
93.5,
0
]
},