feat(assets): 更新字体资源并添加UI预制体

- 用 Mont 字体替换 TFat 和 Ifont 字体资源,包含新的字体图集和配置
- 新增 list、ranks、melist 三个 UI 元素的预制体文件
- 调整 UI3 图集中的多个精灵边框设置以改进显示效果
- 更新 buff 工具提示的字体引用至新字体
- 优化 role_controller 预制体的布局和组件结构
This commit is contained in:
panw
2026-04-02 09:46:48 +08:00
parent bfcd82960a
commit 2d62cadb73
22 changed files with 6566 additions and 887 deletions

View File

@@ -1,14 +0,0 @@
info aa=1 size=32 smooth=1 stretchH=100 bold=0 padding=0,0,0,0 spacing=1,1 charset="" italic=0 unicode=1 face="Arial" outline=0
common lineHeight=32 base=26 scaleW=995 scaleH=411 pages=1 packed=0 alphaChnl=1 redChnl=0 greenChnl=0 blueChnl=0
page id=0 file="Ifont0.png"
chars count=10
char id=65 x=5 y=5 width=160 height=198 xoffset=0 yoffset=-83 xadvance=160 page=0 chnl=15
char id=65 x=170 y=5 width=160 height=198 xoffset=0 yoffset=-83 xadvance=160 page=0 chnl=15
char id=65 x=335 y=5 width=160 height=198 xoffset=0 yoffset=-83 xadvance=160 page=0 chnl=15
char id=65 x=500 y=5 width=160 height=198 xoffset=0 yoffset=-83 xadvance=160 page=0 chnl=15
char id=65 x=665 y=5 width=160 height=198 xoffset=0 yoffset=-83 xadvance=160 page=0 chnl=15
char id=65 x=830 y=5 width=160 height=198 xoffset=0 yoffset=-83 xadvance=160 page=0 chnl=15
char id=65 x=5 y=208 width=160 height=198 xoffset=0 yoffset=-83 xadvance=160 page=0 chnl=15
char id=65 x=170 y=208 width=160 height=198 xoffset=0 yoffset=-83 xadvance=160 page=0 chnl=15
char id=65 x=335 y=208 width=160 height=198 xoffset=0 yoffset=-83 xadvance=160 page=0 chnl=15
char id=65 x=500 y=208 width=160 height=198 xoffset=0 yoffset=-83 xadvance=160 page=0 chnl=15

View File

@@ -1,33 +0,0 @@
{
"ver": "1.0.6",
"importer": "bitmap-font",
"imported": true,
"uuid": "2988f0d5-9eaa-4296-95e4-c1ab6cdd8d6c",
"files": [
".json"
],
"subMetas": {},
"userData": {
"_fntConfig": {
"commonHeight": 32,
"fontSize": 32,
"atlasName": "Ifont0.png",
"fontDefDictionary": {
"65": {
"rect": {
"x": 500,
"y": 208,
"width": 160,
"height": 198
},
"xOffset": 0,
"yOffset": -83,
"xAdvance": 160
}
},
"kerningDict": {}
},
"fontSize": 32,
"textureUuid": "c3f96bca-d003-4aa8-8771-ab547a9ce817"
}
}

View File

@@ -1,20 +0,0 @@
<?xml version="1.0"?>
<font>
<info face="Arial" size="32" bold="0" italic="0" charset="" unicode="1" stretchH="100" smooth="1" aa="1" padding="0,0,0,0" spacing="1,1" outline="0"/>
<common lineHeight="32" base="26" scaleW="995" scaleH="411" pages="1" packed="0" alphaChnl="1" redChnl="0" greenChnl="0" blueChnl="0"/>
<pages>
<page id="0" file="Ifont0.png"/>
</pages>
<chars count="10">
<char id="65" x="5" y="5" width="160" height="198" xoffset="0" yoffset="-83" xadvance="160" page="0" chnl="15"/>
<char id="65" x="170" y="5" width="160" height="198" xoffset="0" yoffset="-83" xadvance="160" page="0" chnl="15"/>
<char id="65" x="335" y="5" width="160" height="198" xoffset="0" yoffset="-83" xadvance="160" page="0" chnl="15"/>
<char id="65" x="500" y="5" width="160" height="198" xoffset="0" yoffset="-83" xadvance="160" page="0" chnl="15"/>
<char id="65" x="665" y="5" width="160" height="198" xoffset="0" yoffset="-83" xadvance="160" page="0" chnl="15"/>
<char id="65" x="830" y="5" width="160" height="198" xoffset="0" yoffset="-83" xadvance="160" page="0" chnl="15"/>
<char id="65" x="5" y="208" width="160" height="198" xoffset="0" yoffset="-83" xadvance="160" page="0" chnl="15"/>
<char id="65" x="170" y="208" width="160" height="198" xoffset="0" yoffset="-83" xadvance="160" page="0" chnl="15"/>
<char id="65" x="335" y="208" width="160" height="198" xoffset="0" yoffset="-83" xadvance="160" page="0" chnl="15"/>
<char id="65" x="500" y="208" width="160" height="198" xoffset="0" yoffset="-83" xadvance="160" page="0" chnl="15"/>
</chars>
</font>

View File

@@ -1,33 +0,0 @@
{
"ver": "1.0.6",
"importer": "bitmap-font",
"imported": true,
"uuid": "d82c9fb1-aaa2-4fa0-8176-c877507b2f3d",
"files": [
".json"
],
"subMetas": {},
"userData": {
"_fntConfig": {
"commonHeight": 32,
"fontSize": 32,
"atlasName": "Ifont0.png",
"fontDefDictionary": {
"65": {
"rect": {
"x": 500,
"y": 208,
"width": 160,
"height": 198
},
"xOffset": 0,
"yOffset": -83,
"xAdvance": 160
}
},
"kerningDict": {}
},
"fontSize": 32,
"textureUuid": "c3f96bca-d003-4aa8-8771-ab547a9ce817"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

View File

@@ -1,134 +0,0 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "c3f96bca-d003-4aa8-8771-ab547a9ce817",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "c3f96bca-d003-4aa8-8771-ab547a9ce817@6c48a",
"displayName": "Ifont0",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "c3f96bca-d003-4aa8-8771-ab547a9ce817",
"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": "c3f96bca-d003-4aa8-8771-ab547a9ce817@f9941",
"displayName": "Ifont0",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": -4,
"offsetY": -0.5,
"trimX": 7,
"trimY": 7,
"width": 973,
"height": 398,
"rawWidth": 995,
"rawHeight": 411,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-486.5,
-199,
0,
486.5,
-199,
0,
-486.5,
199,
0,
486.5,
199,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
7,
404,
980,
404,
7,
6,
980,
6
],
"nuv": [
0.007035175879396985,
0.014598540145985401,
0.9849246231155779,
0.014598540145985401,
0.007035175879396985,
0.9829683698296837,
0.9849246231155779,
0.9829683698296837
],
"minPos": [
-486.5,
-199,
0
],
"maxPos": [
486.5,
199,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "c3f96bca-d003-4aa8-8771-ab547a9ce817@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "c3f96bca-d003-4aa8-8771-ab547a9ce817@6c48a"
}
}

View File

@@ -0,0 +1,29 @@
info face="Mont" size=72 bold=1 italic=0 charset="32,43,45,48-57,61,75,77,107,109" unicode=1 stretchH=100 smooth=1 aa=1 padding=1,1,1,1 spacing=1,1 outline=0
common lineHeight=88 base=70 scaleW=233 scaleH=263 pages=1 packed=0 alphaChnl=0 redChnl=4 greenChnl=4 blueChnl=4
page id=0 file="Mont.png"
chars count=18
char id=32 x=0 y=0 width=0 height=0 xoffset=0 yoffset=0 xadvance=20 page=0 chnl=15
char id=43 x=77 y=201 width=50 height=49 xoffset=-4 yoffset=20 xadvance=43 page=0 chnl=15
char id=45 x=183 y=174 width=41 height=23 xoffset=-3 yoffset=37 xadvance=36 page=0 chnl=15
char id=48 x=0 y=184 width=56 height=66 xoffset=-3 yoffset=12 xadvance=50 page=0 chnl=15
char id=49 x=183 y=198 width=35 height=64 xoffset=-5 yoffset=13 xadvance=30 page=0 chnl=15
char id=50 x=130 y=198 width=50 height=65 xoffset=-3 yoffset=12 xadvance=44 page=0 chnl=15
char id=51 x=183 y=0 width=50 height=65 xoffset=-4 yoffset=13 xadvance=43 page=0 chnl=15
char id=52 x=130 y=0 width=52 height=64 xoffset=-5 yoffset=13 xadvance=43 page=0 chnl=15
char id=53 x=183 y=66 width=50 height=65 xoffset=-3 yoffset=13 xadvance=43 page=0 chnl=15
char id=54 x=77 y=0 width=52 height=66 xoffset=-3 yoffset=12 xadvance=46 page=0 chnl=15
char id=55 x=130 y=65 width=51 height=64 xoffset=-4 yoffset=13 xadvance=42 page=0 chnl=15
char id=56 x=77 y=67 width=52 height=66 xoffset=-3 yoffset=12 xadvance=47 page=0 chnl=15
char id=57 x=77 y=134 width=52 height=66 xoffset=-4 yoffset=12 xadvance=46 page=0 chnl=15
char id=61 x=183 y=132 width=50 height=41 xoffset=-4 yoffset=24 xadvance=43 page=0 chnl=15
char id=75 x=0 y=119 width=58 height=64 xoffset=-1 yoffset=13 xadvance=52 page=0 chnl=15
char id=77 x=0 y=54 width=71 height=64 xoffset=-1 yoffset=13 xadvance=69 page=0 chnl=15
char id=107 x=130 y=130 width=50 height=67 xoffset=-2 yoffset=10 xadvance=43 page=0 chnl=15
char id=109 x=0 y=0 width=76 height=53 xoffset=-2 yoffset=24 xadvance=71 page=0 chnl=15
kernings count=6
kerning first=45 second=49 amount=-2
kerning first=45 second=50 amount=-1
kerning first=45 second=51 amount=-1
kerning first=45 second=55 amount=-1
kerning first=75 second=45 amount=-2
kerning first=107 second=45 amount=-2

View File

@@ -0,0 +1,227 @@
{
"ver": "1.0.6",
"importer": "bitmap-font",
"imported": true,
"uuid": "dd574056-40e9-4545-8eec-eea63d489818",
"files": [
".json"
],
"subMetas": {},
"userData": {
"_fntConfig": {
"commonHeight": 88,
"fontSize": 72,
"atlasName": "Mont.png",
"fontDefDictionary": {
"32": {
"rect": {
"x": 0,
"y": 0,
"width": 0,
"height": 0
},
"xOffset": 0,
"yOffset": 0,
"xAdvance": 20
},
"43": {
"rect": {
"x": 77,
"y": 201,
"width": 50,
"height": 49
},
"xOffset": -4,
"yOffset": 20,
"xAdvance": 43
},
"45": {
"rect": {
"x": 183,
"y": 174,
"width": 41,
"height": 23
},
"xOffset": -3,
"yOffset": 37,
"xAdvance": 36
},
"48": {
"rect": {
"x": 0,
"y": 184,
"width": 56,
"height": 66
},
"xOffset": -3,
"yOffset": 12,
"xAdvance": 50
},
"49": {
"rect": {
"x": 183,
"y": 198,
"width": 35,
"height": 64
},
"xOffset": -5,
"yOffset": 13,
"xAdvance": 30
},
"50": {
"rect": {
"x": 130,
"y": 198,
"width": 50,
"height": 65
},
"xOffset": -3,
"yOffset": 12,
"xAdvance": 44
},
"51": {
"rect": {
"x": 183,
"y": 0,
"width": 50,
"height": 65
},
"xOffset": -4,
"yOffset": 13,
"xAdvance": 43
},
"52": {
"rect": {
"x": 130,
"y": 0,
"width": 52,
"height": 64
},
"xOffset": -5,
"yOffset": 13,
"xAdvance": 43
},
"53": {
"rect": {
"x": 183,
"y": 66,
"width": 50,
"height": 65
},
"xOffset": -3,
"yOffset": 13,
"xAdvance": 43
},
"54": {
"rect": {
"x": 77,
"y": 0,
"width": 52,
"height": 66
},
"xOffset": -3,
"yOffset": 12,
"xAdvance": 46
},
"55": {
"rect": {
"x": 130,
"y": 65,
"width": 51,
"height": 64
},
"xOffset": -4,
"yOffset": 13,
"xAdvance": 42
},
"56": {
"rect": {
"x": 77,
"y": 67,
"width": 52,
"height": 66
},
"xOffset": -3,
"yOffset": 12,
"xAdvance": 47
},
"57": {
"rect": {
"x": 77,
"y": 134,
"width": 52,
"height": 66
},
"xOffset": -4,
"yOffset": 12,
"xAdvance": 46
},
"61": {
"rect": {
"x": 183,
"y": 132,
"width": 50,
"height": 41
},
"xOffset": -4,
"yOffset": 24,
"xAdvance": 43
},
"75": {
"rect": {
"x": 0,
"y": 119,
"width": 58,
"height": 64
},
"xOffset": -1,
"yOffset": 13,
"xAdvance": 52
},
"77": {
"rect": {
"x": 0,
"y": 54,
"width": 71,
"height": 64
},
"xOffset": -1,
"yOffset": 13,
"xAdvance": 69
},
"107": {
"rect": {
"x": 130,
"y": 130,
"width": 50,
"height": 67
},
"xOffset": -2,
"yOffset": 10,
"xAdvance": 43
},
"109": {
"rect": {
"x": 0,
"y": 0,
"width": 76,
"height": 53
},
"xOffset": -2,
"yOffset": 24,
"xAdvance": 71
}
},
"kerningDict": {
"2949169": -2,
"2949170": -1,
"2949171": -1,
"2949175": -1,
"4915245": -2,
"7012397": -2
}
},
"fontSize": 72,
"textureUuid": "9273b9d9-3cc4-41d7-b17e-6bc7a47728d5"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@@ -2,7 +2,7 @@
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "4e4d1811-5bd5-4b5d-9535-a118dc3c970f",
"uuid": "9273b9d9-3cc4-41d7-b17e-6bc7a47728d5",
"files": [
".json",
".png"
@@ -10,14 +10,14 @@
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "4e4d1811-5bd5-4b5d-9535-a118dc3c970f@6c48a",
"displayName": "TFat",
"uuid": "9273b9d9-3cc4-41d7-b17e-6bc7a47728d5@6c48a",
"displayName": "Mont",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "4e4d1811-5bd5-4b5d-9535-a118dc3c970f",
"imageUuidOrDatabaseUri": "9273b9d9-3cc4-41d7-b17e-6bc7a47728d5",
"isUuid": true,
"visible": false,
"minfilter": "linear",
@@ -34,22 +34,21 @@
},
"f9941": {
"importer": "sprite-frame",
"uuid": "4e4d1811-5bd5-4b5d-9535-a118dc3c970f@f9941",
"displayName": "TFat",
"uuid": "9273b9d9-3cc4-41d7-b17e-6bc7a47728d5@f9941",
"displayName": "Mont",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1,
"trimY": 1,
"width": 135,
"height": 137,
"rawWidth": 137,
"rawHeight": 139,
"width": 231,
"height": 261,
"rawWidth": 233,
"rawHeight": 263,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
@@ -61,17 +60,17 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-67.5,
-68.5,
-115.5,
-130.5,
0,
67.5,
-68.5,
115.5,
-130.5,
0,
-67.5,
68.5,
-115.5,
130.5,
0,
67.5,
68.5,
115.5,
130.5,
0
],
"indexes": [
@@ -84,38 +83,39 @@
],
"uv": [
1,
138,
136,
138,
262,
232,
262,
1,
1,
136,
232,
1
],
"nuv": [
0.0072992700729927005,
0.007194244604316547,
0.9927007299270073,
0.007194244604316547,
0.0072992700729927005,
0.9928057553956835,
0.9927007299270073,
0.9928057553956835
0.004291845493562232,
0.0038022813688212928,
0.9957081545064378,
0.0038022813688212928,
0.004291845493562232,
0.9961977186311787,
0.9957081545064378,
0.9961977186311787
],
"minPos": [
-67.5,
-68.5,
-115.5,
-130.5,
0
],
"maxPos": [
67.5,
68.5,
115.5,
130.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "4e4d1811-5bd5-4b5d-9535-a118dc3c970f@6c48a",
"atlasUuid": ""
"imageUuidOrDatabaseUri": "9273b9d9-3cc4-41d7-b17e-6bc7a47728d5@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
@@ -129,6 +129,6 @@
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "4e4d1811-5bd5-4b5d-9535-a118dc3c970f@6c48a"
"redirect": "9273b9d9-3cc4-41d7-b17e-6bc7a47728d5@6c48a"
}
}

View File

@@ -1,17 +0,0 @@
info face="ThaleahFat" size=72 bold=0 italic=0 charset="" unicode=1 stretchH=100 smooth=1 aa=1 padding=1,1,1,1 spacing=1,1
common lineHeight=76 base=48 scaleW=137 scaleH=139 pages=1 packed=0
page id=0 file="TFat.png"
chars count=13
char id=32 x=0 y=0 width=0 height=0 xoffset=0 yoffset=0 xadvance=23 page=0 chnl=15
char id=43 x=0 y=111 width=28 height=28 xoffset=-2 yoffset=19 xadvance=27 page=0 chnl=15
char id=45 x=29 y=111 width=23 height=14 xoffset=-2 yoffset=28 xadvance=23 page=0 chnl=15
char id=48 x=0 y=0 width=37 height=36 xoffset=-2 yoffset=15 xadvance=36 page=0 chnl=15
char id=49 x=114 y=0 width=23 height=36 xoffset=-2 yoffset=15 xadvance=23 page=0 chnl=15
char id=50 x=0 y=37 width=37 height=36 xoffset=-2 yoffset=15 xadvance=36 page=0 chnl=15
char id=51 x=0 y=74 width=37 height=36 xoffset=-2 yoffset=15 xadvance=36 page=0 chnl=15
char id=52 x=38 y=0 width=37 height=36 xoffset=-2 yoffset=15 xadvance=36 page=0 chnl=15
char id=53 x=38 y=37 width=37 height=36 xoffset=-2 yoffset=15 xadvance=36 page=0 chnl=15
char id=54 x=38 y=74 width=37 height=36 xoffset=-2 yoffset=15 xadvance=36 page=0 chnl=15
char id=55 x=76 y=0 width=37 height=36 xoffset=-2 yoffset=15 xadvance=36 page=0 chnl=15
char id=56 x=76 y=37 width=37 height=36 xoffset=-2 yoffset=15 xadvance=36 page=0 chnl=15
char id=57 x=76 y=74 width=37 height=36 xoffset=-2 yoffset=15 xadvance=36 page=0 chnl=15

View File

@@ -1,165 +0,0 @@
{
"ver": "1.0.6",
"importer": "bitmap-font",
"imported": true,
"uuid": "983a109b-a5e3-4ba7-84c5-1c53817ba177",
"files": [
".json"
],
"subMetas": {},
"userData": {
"_fntConfig": {
"commonHeight": 76,
"fontSize": 72,
"atlasName": "TFat.png",
"fontDefDictionary": {
"32": {
"rect": {
"x": 0,
"y": 0,
"width": 0,
"height": 0
},
"xOffset": 0,
"yOffset": 0,
"xAdvance": 23
},
"43": {
"rect": {
"x": 0,
"y": 111,
"width": 28,
"height": 28
},
"xOffset": -2,
"yOffset": 19,
"xAdvance": 27
},
"45": {
"rect": {
"x": 29,
"y": 111,
"width": 23,
"height": 14
},
"xOffset": -2,
"yOffset": 28,
"xAdvance": 23
},
"48": {
"rect": {
"x": 0,
"y": 0,
"width": 37,
"height": 36
},
"xOffset": -2,
"yOffset": 15,
"xAdvance": 36
},
"49": {
"rect": {
"x": 114,
"y": 0,
"width": 23,
"height": 36
},
"xOffset": -2,
"yOffset": 15,
"xAdvance": 23
},
"50": {
"rect": {
"x": 0,
"y": 37,
"width": 37,
"height": 36
},
"xOffset": -2,
"yOffset": 15,
"xAdvance": 36
},
"51": {
"rect": {
"x": 0,
"y": 74,
"width": 37,
"height": 36
},
"xOffset": -2,
"yOffset": 15,
"xAdvance": 36
},
"52": {
"rect": {
"x": 38,
"y": 0,
"width": 37,
"height": 36
},
"xOffset": -2,
"yOffset": 15,
"xAdvance": 36
},
"53": {
"rect": {
"x": 38,
"y": 37,
"width": 37,
"height": 36
},
"xOffset": -2,
"yOffset": 15,
"xAdvance": 36
},
"54": {
"rect": {
"x": 38,
"y": 74,
"width": 37,
"height": 36
},
"xOffset": -2,
"yOffset": 15,
"xAdvance": 36
},
"55": {
"rect": {
"x": 76,
"y": 0,
"width": 37,
"height": 36
},
"xOffset": -2,
"yOffset": 15,
"xAdvance": 36
},
"56": {
"rect": {
"x": 76,
"y": 37,
"width": 37,
"height": 36
},
"xOffset": -2,
"yOffset": 15,
"xAdvance": 36
},
"57": {
"rect": {
"x": 76,
"y": 74,
"width": 37,
"height": 36
},
"xOffset": -2,
"yOffset": 15,
"xAdvance": 36
}
},
"kerningDict": {}
},
"fontSize": 72,
"textureUuid": "4e4d1811-5bd5-4b5d-9535-a118dc3c970f"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB