feat(equip-system): 新增装备系统核心支持

1.  重构卡牌配置定义,明确Field类型为装备卡并支持单卡多词条
2.  添加装备卡判断和词条计数工具函数
3.  新增EquipListComp装备列表组件
4.  更新aui.plist和预制体UI资源适配新装备系统
5.  补充多词条装备示例配置
This commit is contained in:
panFD
2026-07-22 00:22:08 +08:00
parent db3b5f3649
commit 3e9b65e99d
12 changed files with 33183 additions and 10245 deletions

View File

@@ -2554,10 +2554,10 @@
"height": 81,
"rawWidth": 185,
"rawHeight": 81,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 92,
"borderRight": 92,
"borderTop": 40,
"borderBottom": 40,
"borderLeft": 30,
"borderRight": 30,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
@@ -2693,9 +2693,9 @@
"rawWidth": 185,
"rawHeight": 81,
"borderTop": 40,
"borderBottom": 35,
"borderLeft": 92,
"borderRight": 92,
"borderBottom": 40,
"borderLeft": 30,
"borderRight": 30,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
@@ -2738,10 +2738,10 @@
"height": 81,
"rawWidth": 185,
"rawHeight": 81,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 92,
"borderRight": 92,
"borderTop": 40,
"borderBottom": 40,
"borderLeft": 30,
"borderRight": 30,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,13 @@
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "f30f91b1-3100-4d9e-befb-cdde5f86e6f8",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "equip"
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -40,20 +40,23 @@
"__id__": 132
},
{
"__id__": 140
"__id__": 138
},
{
"__id__": 146
}
],
"_active": true,
"_components": [
{
"__id__": 146
"__id__": 152
},
{
"__id__": 148
"__id__": 154
}
],
"_prefab": {
"__id__": 150
"__id__": 156
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -427,9 +430,9 @@
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 51,
"g": 51,
"b": 51,
"r": 158,
"g": 255,
"b": 134,
"a": 255
},
"_spriteFrame": {
@@ -520,7 +523,7 @@
"__id__": 20
}
],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 28
@@ -631,8 +634,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 218,
"height": 218
"width": 168,
"height": 168
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -753,8 +756,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 420,
"height": 420
"width": 320,
"height": 320
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -784,9 +787,9 @@
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 51,
"g": 51,
"b": 51,
"r": 92,
"g": 185,
"b": 247,
"a": 255
},
"_spriteFrame": {
@@ -877,7 +880,7 @@
"__id__": 36
}
],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 44
@@ -988,8 +991,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 235,
"height": 235
"width": 168,
"height": 168
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -1113,8 +1116,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 470,
"height": 470
"width": 320,
"height": 320
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -1144,9 +1147,9 @@
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 51,
"g": 51,
"b": 51,
"r": 228,
"g": 194,
"b": 255,
"a": 255
},
"_spriteFrame": {
@@ -1237,7 +1240,7 @@
"__id__": 52
}
],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 60
@@ -1348,8 +1351,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 235,
"height": 235
"width": 168,
"height": 168
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -1473,8 +1476,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 470,
"height": 470
"width": 320,
"height": 320
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -1504,9 +1507,9 @@
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 51,
"g": 51,
"b": 51,
"r": 255,
"g": 179,
"b": 179,
"a": 255
},
"_spriteFrame": {
@@ -1597,7 +1600,7 @@
"__id__": 68
}
],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 76
@@ -1708,8 +1711,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 235,
"height": 235
"width": 168,
"height": 168
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -1833,8 +1836,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 470,
"height": 470
"width": 320,
"height": 320
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -1864,9 +1867,9 @@
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 51,
"g": 51,
"b": 51,
"r": 255,
"g": 246,
"b": 139,
"a": 255
},
"_spriteFrame": {
@@ -2858,7 +2861,7 @@
},
{
"__type__": "cc.Node",
"_name": "icon",
"_name": "ItemFrame00~03_BgGlow",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
@@ -2890,6 +2893,142 @@
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.5,
"y": 0.5,
"z": 1
},
"_mobility": 0,
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 126
},
"_enabled": true,
"__prefab": {
"__id__": 128
},
"_contentSize": {
"__type__": "cc.Size",
"width": 133,
"height": 133
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "104MEwfepJOojH2VuLhJOd"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 126
},
"_enabled": true,
"__prefab": {
"__id__": 130
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@e217d",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "8eUcY/ZzxGerlWs7mB2pN3"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "1aXiaxY2xGibmv+6AL2LT7",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "icon",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 133
},
{
"__id__": 135
}
],
"_prefab": {
"__id__": 137
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.6,
@@ -2912,11 +3051,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 126
"__id__": 132
},
"_enabled": true,
"__prefab": {
"__id__": 128
"__id__": 134
},
"_contentSize": {
"__type__": "cc.Size",
@@ -2940,11 +3079,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 126
"__id__": 132
},
"_enabled": true,
"__prefab": {
"__id__": 130
"__id__": 136
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -3004,20 +3143,20 @@
"__id__": 1
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 133
"__id__": 139
},
{
"__id__": 135
"__id__": 141
},
{
"__id__": 137
"__id__": 143
}
],
"_prefab": {
"__id__": 139
"__id__": 145
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -3054,11 +3193,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 132
"__id__": 138
},
"_enabled": true,
"__prefab": {
"__id__": 134
"__id__": 140
},
"_contentSize": {
"__type__": "cc.Size",
@@ -3082,11 +3221,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 132
"__id__": 138
},
"_enabled": true,
"__prefab": {
"__id__": 136
"__id__": 142
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -3130,11 +3269,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 132
"__id__": 138
},
"_enabled": true,
"__prefab": {
"__id__": 138
"__id__": 144
},
"_alignFlags": 45,
"_target": null,
@@ -3185,14 +3324,14 @@
"_active": false,
"_components": [
{
"__id__": 141
"__id__": 147
},
{
"__id__": 143
"__id__": 149
}
],
"_prefab": {
"__id__": 145
"__id__": 151
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -3229,11 +3368,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 140
"__id__": 146
},
"_enabled": true,
"__prefab": {
"__id__": 142
"__id__": 148
},
"_contentSize": {
"__type__": "cc.Size",
@@ -3257,11 +3396,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 140
"__id__": 146
},
"_enabled": true,
"__prefab": {
"__id__": 144
"__id__": 150
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -3342,7 +3481,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 147
"__id__": 153
},
"_contentSize": {
"__type__": "cc.Size",
@@ -3370,17 +3509,17 @@
},
"_enabled": true,
"__prefab": {
"__id__": 149
"__id__": 155
},
"icon_node": {
"__id__": 126
"__id__": 132
},
"bg_node": {
"__id__": 2
},
"info_label": null,
"cd_mask": {
"__id__": 132
"__id__": 138
},
"_id": ""
},

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB