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__": 340
"__id__": 358
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -1444,7 +1444,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 23.333333333333336,
"y": 0,
"z": 0
},
"_lrot": {
@@ -1485,7 +1485,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 190,
"height": 23.333333333333332
"height": 70
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -1521,12 +1521,12 @@
"a": 255
},
"_string": "词条3",
"_horizontalAlign": 0,
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 18,
"_actualFontSize": 21,
"_fontSize": 20,
"_fontFamily": "Arial",
"_lineHeight": 25,
"_lineHeight": 21,
"_overflow": 2,
"_enableWrapText": true,
"_font": null,
@@ -1624,7 +1624,7 @@
"__id__": 87
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 97
@@ -1822,7 +1822,7 @@
"__id__": 87
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 105
@@ -6061,7 +6061,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 339
"__id__": 357
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -6127,14 +6127,14 @@
"_active": true,
"_components": [
{
"__id__": 336
"__id__": 354
},
{
"__id__": 308
}
],
"_prefab": {
"__id__": 338
"__id__": 356
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -6167,7 +6167,7 @@
},
{
"__type__": "cc.Node",
"_name": "cost",
"_name": "coin",
"_objFlags": 0,
"__editorExtras__": {
"mountedRoot": null
@@ -6177,7 +6177,7 @@
},
"_children": [
{
"__id__": 325
"__id__": 343
},
{
"__id__": 309
@@ -6186,14 +6186,14 @@
"_active": true,
"_components": [
{
"__id__": 331
"__id__": 349
},
{
"__id__": 333
"__id__": 351
}
],
"_prefab": {
"__id__": 335
"__id__": 353
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -6238,22 +6238,25 @@
},
{
"__id__": 310
},
{
"__id__": 318
}
],
"_active": true,
"_components": [
{
"__id__": 318
"__id__": 336
},
{
"__id__": 320
"__id__": 338
},
{
"__id__": 322
"__id__": 340
}
],
"_prefab": {
"__id__": 324
"__id__": 342
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -6445,6 +6448,442 @@
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "stone",
"_objFlags": 0,
"__editorExtras__": {
"mountedRoot": null
},
"_parent": {
"__id__": 311
},
"_children": [
{
"__id__": 319
},
{
"__id__": 325
}
],
"_active": false,
"_components": [
{
"__id__": 331
},
{
"__id__": 333
}
],
"_prefab": {
"__id__": 335
},
"_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__": 318
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 320
},
{
"__id__": 322
}
],
"_prefab": {
"__id__": 324
},
"_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__": 319
},
"_enabled": true,
"__prefab": {
"__id__": 321
},
"_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__": 319
},
"_enabled": true,
"__prefab": {
"__id__": 323
},
"_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__": 318
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 326
},
{
"__id__": 328
}
],
"_prefab": {
"__id__": 330
},
"_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__": 325
},
"_enabled": true,
"__prefab": {
"__id__": 327
},
"_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__": 325
},
"_enabled": true,
"__prefab": {
"__id__": 329
},
"_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__": 318
},
"_enabled": true,
"__prefab": {
"__id__": 332
},
"_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__": 318
},
"_enabled": true,
"__prefab": {
"__id__": 334
},
"_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": "",
@@ -6455,7 +6894,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 319
"__id__": 337
},
"_contentSize": {
"__type__": "cc.Size",
@@ -6483,7 +6922,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 321
"__id__": 339
},
"_alignFlags": 45,
"_target": null,
@@ -6519,7 +6958,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 323
"__id__": 341
},
"_resizeMode": 1,
"_layoutType": 2,
@@ -6562,7 +7001,7 @@
},
{
"__type__": "cc.Node",
"_name": "gold",
"_name": "icon",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
@@ -6572,14 +7011,14 @@
"_active": true,
"_components": [
{
"__id__": 326
"__id__": 344
},
{
"__id__": 328
"__id__": 346
}
],
"_prefab": {
"__id__": 330
"__id__": 348
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -6616,11 +7055,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 325
"__id__": 343
},
"_enabled": true,
"__prefab": {
"__id__": 327
"__id__": 345
},
"_contentSize": {
"__type__": "cc.Size",
@@ -6644,11 +7083,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 325
"__id__": 343
},
"_enabled": true,
"__prefab": {
"__id__": 329
"__id__": 347
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -6706,7 +7145,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 332
"__id__": 350
},
"_contentSize": {
"__type__": "cc.Size",
@@ -6734,7 +7173,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 334
"__id__": 352
},
"_resizeMode": 1,
"_layoutType": 1,
@@ -6785,7 +7224,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 337
"__id__": 355
},
"_contentSize": {
"__type__": "cc.Size",
@@ -6832,13 +7271,13 @@
"instance": null,
"targetOverrides": [
{
"__id__": 341
"__id__": 359
},
{
"__id__": 343
"__id__": 361
},
{
"__id__": 345
"__id__": 363
}
],
"nestedPrefabInstanceRoots": [
@@ -6866,7 +7305,7 @@
"__id__": 40
},
"targetInfo": {
"__id__": 342
"__id__": 360
}
},
{
@@ -6888,7 +7327,7 @@
"__id__": 40
},
"targetInfo": {
"__id__": 344
"__id__": 362
}
},
{
@@ -6910,7 +7349,7 @@
"__id__": 119
},
"targetInfo": {
"__id__": 346
"__id__": 364
}
},
{