feat: 新增技能装备详情弹窗IBox,替换旧英雄信息弹窗逻辑

1. 重构IBoxComp组件,支持技能和装备详情展示
2. 为EquipBoxComp和SkillBoxComp添加长按弹窗功能
3. 更新UI配置,修正IBox弹窗层级
4. 新增富文本工具函数生成技能装备详情文案
This commit is contained in:
pan
2026-07-31 10:55:46 +08:00
parent bdb4602fe6
commit 8c421c42d4
11 changed files with 2008 additions and 4222 deletions

View File

@@ -47,7 +47,7 @@
}
],
"_prefab": {
"__id__": 342
"__id__": 360
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -1540,7 +1540,7 @@
"a": 255
},
"_string": "词条3",
"_horizontalAlign": 0,
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 18,
"_fontSize": 20,
@@ -1738,7 +1738,7 @@
"a": 255
},
"_string": "词条2",
"_horizontalAlign": 0,
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 18,
"_fontSize": 20,
@@ -1936,7 +1936,7 @@
"a": 255
},
"_string": "词条3",
"_horizontalAlign": 0,
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 18,
"_fontSize": 20,
@@ -6080,7 +6080,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 341
"__id__": 359
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -6146,14 +6146,14 @@
"_active": true,
"_components": [
{
"__id__": 338
"__id__": 356
},
{
"__id__": 310
}
],
"_prefab": {
"__id__": 340
"__id__": 358
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -6186,7 +6186,7 @@
},
{
"__type__": "cc.Node",
"_name": "cost",
"_name": "coin",
"_objFlags": 0,
"__editorExtras__": {
"mountedRoot": null
@@ -6196,7 +6196,7 @@
},
"_children": [
{
"__id__": 327
"__id__": 345
},
{
"__id__": 311
@@ -6205,14 +6205,14 @@
"_active": true,
"_components": [
{
"__id__": 333
"__id__": 351
},
{
"__id__": 335
"__id__": 353
}
],
"_prefab": {
"__id__": 337
"__id__": 355
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -6257,22 +6257,25 @@
},
{
"__id__": 312
},
{
"__id__": 320
}
],
"_active": true,
"_components": [
{
"__id__": 320
"__id__": 338
},
{
"__id__": 322
"__id__": 340
},
{
"__id__": 324
"__id__": 342
}
],
"_prefab": {
"__id__": 326
"__id__": 344
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -6464,6 +6467,442 @@
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "stone",
"_objFlags": 0,
"__editorExtras__": {
"mountedRoot": null
},
"_parent": {
"__id__": 313
},
"_children": [
{
"__id__": 321
},
{
"__id__": 327
}
],
"_active": false,
"_components": [
{
"__id__": 333
},
{
"__id__": 335
}
],
"_prefab": {
"__id__": 337
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -32.75,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "icon",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 320
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 322
},
{
"__id__": 324
}
],
"_prefab": {
"__id__": 326
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -7.5615234375,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"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__": 321
},
"_enabled": true,
"__prefab": {
"__id__": 323
},
"_contentSize": {
"__type__": "cc.Size",
"width": 27,
"height": 27
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "31GJSeBupAjL6B0JSMWEDn"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 321
},
"_enabled": true,
"__prefab": {
"__id__": 325
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4@66d28",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": {
"__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4",
"__expectedType__": "cc.SpriteAtlas"
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f0Ah1lXhpLIZry/aPq9YzL"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "d5mcu1TmRMYpCqlMi96hsO",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "num",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 320
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 328
},
{
"__id__": 330
}
],
"_prefab": {
"__id__": 332
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 13.5,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"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__": 327
},
"_enabled": true,
"__prefab": {
"__id__": 329
},
"_contentSize": {
"__type__": "cc.Size",
"width": 15.123046875,
"height": 54.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "94OK1DwMRAl7qOBrTxG/i4"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 327
},
"_enabled": true,
"__prefab": {
"__id__": 331
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_string": "2",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 20,
"_fontSize": 20,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 0,
"_enableWrapText": true,
"_font": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_isItalic": false,
"_isBold": true,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_enableOutline": true,
"_outlineColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_outlineWidth": 2,
"_enableShadow": false,
"_shadowColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_shadowOffset": {
"__type__": "cc.Vec2",
"x": 2,
"y": 2
},
"_shadowBlur": 2,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "38htj7TVBI84FdhXPqZi9Y"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "5aV+d4uupA3430zZytYs+/",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 320
},
"_enabled": true,
"__prefab": {
"__id__": 334
},
"_contentSize": {
"__type__": "cc.Size",
"width": 42.123046875,
"height": 30
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "daubq3MHBCvZhVT7CCunA4"
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 320
},
"_enabled": true,
"__prefab": {
"__id__": 336
},
"_resizeMode": 1,
"_layoutType": 1,
"_cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_startAxis": 0,
"_paddingLeft": 0,
"_paddingRight": 0,
"_paddingTop": 0,
"_paddingBottom": 0,
"_spacingX": 0,
"_spacingY": 0,
"_verticalDirection": 1,
"_horizontalDirection": 0,
"_constraint": 0,
"_constraintNum": 2,
"_affectedByScale": false,
"_isAlign": false,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "867zQklidJAJ9K6dAQWCB6"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "32ZgIQHstCXYwNDGBH6HPk",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
@@ -6474,7 +6913,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 321
"__id__": 339
},
"_contentSize": {
"__type__": "cc.Size",
@@ -6502,7 +6941,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 323
"__id__": 341
},
"_alignFlags": 45,
"_target": null,
@@ -6538,7 +6977,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 325
"__id__": 343
},
"_resizeMode": 1,
"_layoutType": 2,
@@ -6581,7 +7020,7 @@
},
{
"__type__": "cc.Node",
"_name": "gold",
"_name": "icon",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
@@ -6591,14 +7030,14 @@
"_active": true,
"_components": [
{
"__id__": 328
"__id__": 346
},
{
"__id__": 330
"__id__": 348
}
],
"_prefab": {
"__id__": 332
"__id__": 350
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -6635,11 +7074,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 327
"__id__": 345
},
"_enabled": true,
"__prefab": {
"__id__": 329
"__id__": 347
},
"_contentSize": {
"__type__": "cc.Size",
@@ -6663,11 +7102,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 327
"__id__": 345
},
"_enabled": true,
"__prefab": {
"__id__": 331
"__id__": 349
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -6725,7 +7164,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 334
"__id__": 352
},
"_contentSize": {
"__type__": "cc.Size",
@@ -6753,7 +7192,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 336
"__id__": 354
},
"_resizeMode": 1,
"_layoutType": 1,
@@ -6804,7 +7243,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 339
"__id__": 357
},
"_contentSize": {
"__type__": "cc.Size",
@@ -6851,13 +7290,13 @@
"instance": null,
"targetOverrides": [
{
"__id__": 343
"__id__": 361
},
{
"__id__": 345
"__id__": 363
},
{
"__id__": 347
"__id__": 365
}
],
"nestedPrefabInstanceRoots": [
@@ -6885,7 +7324,7 @@
"__id__": 40
},
"targetInfo": {
"__id__": 344
"__id__": 362
}
},
{
@@ -6907,7 +7346,7 @@
"__id__": 40
},
"targetInfo": {
"__id__": 346
"__id__": 364
}
},
{
@@ -6929,7 +7368,7 @@
"__id__": 121
},
"targetInfo": {
"__id__": 348
"__id__": 366
}
},
{