fix: 调整游戏地平线并修复UI元素位置与显示问题

- 将游戏地平线从100调整为0,修正游戏世界坐标基准
- 修复地图中多个物体的Y轴位置偏移问题
- 调整hnode.prefab中按钮尺寸、字体大小和布局边距
- 修复role_controller.prefab中控制面板的激活状态和位置
- 移除prefab中多余的instance和targetOverrides字段
This commit is contained in:
walkpan
2026-05-02 20:29:08 +08:00
parent 84138fbf7b
commit a61df22aa8
4 changed files with 34 additions and 38 deletions

View File

@@ -856,7 +856,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 53.287,
"y": -46.713,
"z": 0
},
"_lrot": {
@@ -992,7 +992,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 56.08,
"y": -43.92,
"z": 0
},
"_lrot": {
@@ -1128,7 +1128,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -363.417,
"y": -463.417,
"z": 0
},
"_lrot": {
@@ -1267,7 +1267,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -28,
"y": -128,
"z": 0
},
"_lrot": {
@@ -1383,7 +1383,7 @@
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 22,
"_bottom": -78,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,

View File

@@ -1455,7 +1455,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 67.5,
"y": -57,
"y": -51.718,
"z": 0
},
"_lrot": {
@@ -2044,7 +2044,7 @@
"_left": 10,
"_right": 10,
"_top": 0,
"_bottom": 5.5000000000000036,
"_bottom": 10.782,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
@@ -2072,8 +2072,6 @@
"__id__": 0
},
"fileId": "76MLe+aB5MMobrM65vInVA",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
@@ -2113,7 +2111,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 67.5,
"y": -79.12100000000001,
"y": -73.839,
"z": 0
},
"_lrot": {
@@ -2702,7 +2700,7 @@
"_left": 10,
"_right": 10,
"_top": 0,
"_bottom": -16.621000000000002,
"_bottom": -11.338999999999992,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
@@ -4834,7 +4832,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 67.5,
"y": -116.59899999999999,
"y": -111.31700000000001,
"z": 0
},
"_lrot": {
@@ -4925,7 +4923,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 40
"height": 55
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -4963,10 +4961,10 @@
"_string": "出售",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 25,
"_fontSize": 25,
"_actualFontSize": 45,
"_fontSize": 45,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_lineHeight": 55,
"_overflow": 1,
"_enableWrapText": false,
"_font": null,
@@ -4985,7 +4983,7 @@
"b": 0,
"a": 255
},
"_outlineWidth": 2,
"_outlineWidth": 3,
"_enableShadow": false,
"_shadowColor": {
"__type__": "cc.Color",
@@ -5184,7 +5182,7 @@
"_left": 10,
"_right": 10,
"_top": 0,
"_bottom": -61.599000000000004,
"_bottom": -56.31699999999999,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
@@ -5212,8 +5210,6 @@
"__id__": 0
},
"fileId": "02JrX+YSZAXZFrDj1ZF6Vq",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{

View File

@@ -7780,7 +7780,7 @@
"__id__": 315
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 325
@@ -7798,7 +7798,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"y": -54.95,
"z": 0
},
"_lrot": {
@@ -7838,8 +7838,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 220,
"height": 110
"width": 110,
"height": 109.9
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -7869,13 +7869,13 @@
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"r": 163,
"g": 163,
"b": 163,
"a": 255
},
"_spriteFrame": {
"__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4@4a554",
"__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@abf7b",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 1,
@@ -7891,7 +7891,7 @@
"_isTrimmedMode": true,
"_useGrayscale": true,
"_atlas": {
"__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4",
"__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73",
"__expectedType__": "cc.SpriteAtlas"
},
"_id": ""
@@ -17402,7 +17402,7 @@
"node": {
"__id__": 99
},
"_enabled": false,
"_enabled": true,
"__prefab": {
"__id__": 831
},
@@ -17411,7 +17411,7 @@
"_left": 0,
"_right": 0,
"_top": 600,
"_bottom": -25.113000000000056,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
@@ -17676,8 +17676,8 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -308.317,
"y": 80,
"x": 306.634,
"y": 451.513,
"z": 0
},
"_lrot": {
@@ -17742,7 +17742,7 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.7,
"x": -0.7,
"y": 0.7,
"z": 1
},
@@ -18191,12 +18191,12 @@
"__prefab": {
"__id__": 871
},
"_alignFlags": 12,
"_alignFlags": 36,
"_target": null,
"_left": -8.317000000000007,
"_right": 584.502,
"_right": -6.6340000000000146,
"_top": 89.63,
"_bottom": 25,
"_bottom": 396.513,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,

View File

@@ -11,7 +11,7 @@ export enum BoxSet {
LETF_END = -360,
RIGHT_END = 360,
//游戏地平线
GAME_LINE = 100,
GAME_LINE = 0,
//攻击距离
}