perf(天赋面板): 优化天赋面板加载性能,减少重复资源加载

调整天赋面板预制体的UI布局参数,优化间距、内边距与容器尺寸。将天赋子项的图集加载改为父组件统一预加载并缓存,避免重复加载同一资源。面板添加时先立即刷新UI以保证秒开,后续异步更新所有子项的图标。
This commit is contained in:
walkpan
2026-05-11 16:05:59 +08:00
parent 3dd72c13b4
commit 336d7d03db
4 changed files with 130 additions and 1656 deletions

View File

@@ -286,7 +286,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 666.634,
"y": 706.696,
"z": 0
},
"_lrot": {
@@ -356,7 +356,7 @@
"_target": null,
"_left": 0,
"_right": 0,
"_top": -27.134000000000015,
"_top": -67.19600000000003,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
@@ -426,7 +426,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 5,
"y": 15,
"z": 0
},
"_lrot": {
@@ -844,7 +844,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -255,
"y": -245,
"z": 0
},
"_lrot": {
@@ -945,7 +945,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 990
"height": 1010
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -1159,12 +1159,12 @@
"height": 40
},
"_startAxis": 0,
"_paddingLeft": 39.9,
"_paddingRight": 40,
"_paddingTop": 50,
"_paddingLeft": 10,
"_paddingRight": 10,
"_paddingTop": 0,
"_paddingBottom": 0,
"_spacingX": 30,
"_spacingY": 30,
"_spacingX": 20,
"_spacingY": 20,
"_verticalDirection": 1,
"_horizontalDirection": 0,
"_constraint": 2,
@@ -1218,7 +1218,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 990
"height": 1010
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -1292,7 +1292,7 @@
"_target": null,
"_left": 0,
"_right": 0,
"_top": 140,
"_top": 120,
"_bottom": 150,
"_horizontalCenter": 0,
"_verticalCenter": 0,
@@ -1371,7 +1371,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 540,
"y": 632.047,
"z": 0
},
"_lrot": {
@@ -1542,7 +1542,7 @@
"__id__": 60
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 68
@@ -1701,7 +1701,7 @@
"__id__": 60
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 74
@@ -1870,7 +1870,7 @@
"__id__": 94
}
],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 102
@@ -2546,7 +2546,7 @@
"__id__": 60
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 110
@@ -2705,7 +2705,7 @@
"__id__": 60
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 116
@@ -2868,7 +2868,7 @@
"__id__": 122
}
],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 128
@@ -3274,7 +3274,7 @@
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_top": -92.04700000000003,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,