refactor: 整理多页面UI预制体并调整布局

1. 关闭排行榜、天赋页面默认激活状态
2. 调整英雄页面布局偏移与容器尺寸
3. 清理天赋页面冗余的预制体实例配置
4. 新增英雄、天赋、排行榜页面的节点引用
This commit is contained in:
panw
2026-05-27 15:54:22 +08:00
parent f0c5b423d6
commit 3c78acde78
5 changed files with 1598 additions and 1133 deletions

View File

@@ -46,7 +46,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 70,
"y": 0,
"z": 0
},
"_lrot": {
@@ -102,7 +102,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 366,
"y": 296,
"z": 0
},
"_lrot": {
@@ -308,7 +308,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 400,
"y": 470,
"z": 0
},
"_lrot": {
@@ -7029,7 +7029,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 425,
"y": 495,
"z": 0
},
"_lrot": {
@@ -7130,7 +7130,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 700,
"height": 850
"height": 990
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -7403,7 +7403,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 700,
"height": 850
"height": 990
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -7525,7 +7525,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 700,
"height": 850
"height": 990
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -7602,7 +7602,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1140
"height": 1280
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -7632,7 +7632,7 @@
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 140,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,

View File

@@ -3848,7 +3848,7 @@
"__id__": 1
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 167
@@ -3984,7 +3984,7 @@
"__id__": 1
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 173

View File

@@ -38,25 +38,22 @@
},
{
"__id__": 154
},
{
"__id__": 165
}
],
"_active": true,
"_components": [
{
"__id__": 176
"__id__": 165
},
{
"__id__": 178
"__id__": 167
},
{
"__id__": 180
"__id__": 169
}
],
"_prefab": {
"__id__": 182
"__id__": 171
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -3428,7 +3425,7 @@
"__id__": 1
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 147
@@ -3603,7 +3600,7 @@
"__id__": 1
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 155
@@ -3842,150 +3839,6 @@
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_prefab": {
"__id__": 166
},
"__editorExtras__": {}
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 165
},
"asset": {
"__uuid__": "56aee962-4a5e-45ae-a779-999444d06d18",
"__expectedType__": "cc.Prefab"
},
"fileId": "cboM54s0hM07XCtrpFp0/b",
"instance": {
"__id__": 167
},
"targetOverrides": null
},
{
"__type__": "cc.PrefabInstance",
"fileId": "64iUo2urJCyZ8BM9W4shK0",
"prefabRootNode": {
"__id__": 1
},
"mountedChildren": [],
"mountedComponents": [],
"propertyOverrides": [
{
"__id__": 168
},
{
"__id__": 170
},
{
"__id__": 171
},
{
"__id__": 172
},
{
"__id__": 173
},
{
"__id__": 175
}
],
"removedComponents": []
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 169
},
"propertyPath": [
"_name"
],
"value": "top"
},
{
"__type__": "cc.TargetInfo",
"localID": [
"cboM54s0hM07XCtrpFp0/b"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 169
},
"propertyPath": [
"_lpos"
],
"value": {
"__type__": "cc.Vec3",
"x": 528.069,
"y": -574.7269999999999,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 169
},
"propertyPath": [
"_lrot"
],
"value": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 169
},
"propertyPath": [
"_euler"
],
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 174
},
"propertyPath": [
"_top"
],
"value": 1179.7269999999999
},
{
"__type__": "cc.TargetInfo",
"localID": [
"52mhkKH89DVKECWS3HY4Qh"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 174
},
"propertyPath": [
"_horizontalCenter"
],
"value": 528.069
},
{
"__type__": "cc.UITransform",
"_name": "",
@@ -3996,7 +3849,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 177
"__id__": 166
},
"_contentSize": {
"__type__": "cc.Size",
@@ -4024,7 +3877,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 179
"__id__": 168
},
"_alignFlags": 45,
"_target": null,
@@ -4060,7 +3913,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 181
"__id__": 170
},
"title_node": {
"__id__": 12
@@ -4106,11 +3959,6 @@
},
"fileId": "f2zPd6AOdBrIgj89xLzmRM",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": [
{
"__id__": 165
}
]
"targetOverrides": null
}
]

File diff suppressed because it is too large Load Diff

View File

@@ -49,7 +49,15 @@ export class MissionHomeComp extends CCComp {
/** 排行榜按钮节点 */
@property(Node)
rank_btn=null!
/** 排行榜按钮节点 */
@property(Node)
heros_page=null!
@property(Node)
talents_page=null!
@property(Node)
ranks_page=null!
/** 注册任务结束事件 */
protected onLoad(): void {
this.on(GameEvent.MissionEnd,this.mission_end,this)