Misc fixes for UI alignments.

This commit is contained in:
genxium
2023-01-18 10:06:27 +08:00
parent 342efc623c
commit 48074d48af
20 changed files with 3527 additions and 9146 deletions

View File

@@ -72,17 +72,11 @@
"__id__": 3
},
{
"__id__": 8
"__id__": 9
}
],
"_active": true,
"_components": [
{
"__id__": 38
},
{
"__id__": 39
},
{
"__id__": 40
},
@@ -91,6 +85,12 @@
},
{
"__id__": 42
},
{
"__id__": 43
},
{
"__id__": 44
}
],
"_prefab": null,
@@ -158,7 +158,7 @@
"__id__": 5
},
{
"__id__": 37
"__id__": 39
}
],
"_prefab": null,
@@ -247,10 +247,10 @@
"__uuid__": "670b477e-61a1-4778-879b-35913f7c79d2"
},
"boundRoomIdLabel": {
"__id__": 15
"__id__": 16
},
"countdownLabel": {
"__id__": 21
"__id__": 23
},
"resultPanelPrefab": {
"__uuid__": "c4cfe3bd-c59e-4d5b-95cb-c933b120e184"
@@ -259,7 +259,7 @@
"__uuid__": "32b8e752-8362-4783-a4a6-1160af8b7109"
},
"findingPlayerPrefab": {
"__uuid__": "3ed4c7bc-79d0-4075-a563-d5a58ae798f9"
"__uuid__": "dc804c5c-ff76-445e-ac69-52269055c3c5"
},
"countdownToBeginGamePrefab": {
"__uuid__": "230eeb1f-e0f9-4a41-ab6c-05b3771cbf3e"
@@ -283,13 +283,13 @@
},
"_children": [
{
"__id__": 31
"__id__": 33
}
],
"_active": true,
"_components": [
{
"__id__": 36
"__id__": 38
}
],
"_prefab": null,
@@ -316,7 +316,7 @@
"ctor": "Float64Array",
"array": [
-199.439,
-194.735,
-172.557,
0,
0,
0,
@@ -324,7 +324,7 @@
1,
0.4,
0.4,
1
0.4
]
},
"_eulerAngles": {
@@ -342,32 +342,29 @@
},
{
"__type__": "cc.Node",
"_name": "WidgetsAboveAll",
"_name": "Interactive",
"_objFlags": 0,
"_parent": {
"__id__": 8
},
"_children": [
{
"__id__": 10
},
{
"__id__": 6
},
{
"__id__": 20
},
{
"__id__": 22
},
{
"__id__": 26
"__id__": 24
},
{
"__id__": 28
}
],
"_active": true,
"_components": [
{
"__id__": 30
"__id__": 32
}
],
"_prefab": null,
@@ -416,6 +413,75 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "bb5Zj3NPxJgrEYDllBW7Gj"
},
{
"__type__": "cc.Node",
"_name": "WidgetsAboveAll",
"_objFlags": 0,
"_parent": {
"__id__": 9
},
"_children": [
{
"__id__": 11
},
{
"__id__": 7
}
],
"_active": true,
"_components": [
{
"__id__": 21
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 1280
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "c6fPdAUURDX69j0zTeIFZv"
},
{
@@ -427,13 +493,13 @@
},
"_children": [
{
"__id__": 7
"__id__": 8
}
],
"_active": true,
"_components": [
{
"__id__": 9
"__id__": 10
}
],
"_prefab": null,
@@ -461,7 +527,7 @@
"array": [
0,
0,
210.4394431281402,
209.57814771583418,
0,
0,
0,
@@ -489,7 +555,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
"__id__": 9
},
"_enabled": true,
"_cullingMask": 4294967295,
@@ -525,20 +591,20 @@
"_name": "DebugInfo",
"_objFlags": 0,
"_parent": {
"__id__": 7
"__id__": 8
},
"_children": [
{
"__id__": 11
"__id__": 12
}
],
"_active": true,
"_components": [
{
"__id__": 18
"__id__": 19
},
{
"__id__": 19
"__id__": 20
}
],
"_prefab": null,
@@ -594,23 +660,23 @@
"_name": "RoomIdIndicator",
"_objFlags": 0,
"_parent": {
"__id__": 10
"__id__": 11
},
"_children": [
{
"__id__": 12
"__id__": 13
},
{
"__id__": 14
"__id__": 15
}
],
"_active": false,
"_components": [
{
"__id__": 16
"__id__": 17
},
{
"__id__": 17
"__id__": 18
}
],
"_prefab": null,
@@ -666,13 +732,13 @@
"_name": "label",
"_objFlags": 0,
"_parent": {
"__id__": 11
"__id__": 12
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 13
"__id__": 14
}
],
"_prefab": null,
@@ -728,7 +794,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
"__id__": 13
},
"_enabled": true,
"_materials": [],
@@ -756,13 +822,13 @@
"_name": "BoundRoomIdLabel",
"_objFlags": 0,
"_parent": {
"__id__": 11
"__id__": 12
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 15
"__id__": 16
}
],
"_prefab": null,
@@ -818,7 +884,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
"__id__": 15
},
"_enabled": true,
"_materials": [],
@@ -846,7 +912,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
"__id__": 12
},
"_enabled": true,
"_layoutSize": {
@@ -879,7 +945,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
"__id__": 12
},
"_enabled": true,
"_materials": [],
@@ -909,7 +975,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
"__id__": 11
},
"_enabled": true,
"_materials": [],
@@ -935,7 +1001,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
"__id__": 11
},
"_enabled": true,
"_layoutSize": {
@@ -963,6 +1029,33 @@
"_N$affectedByScale": false,
"_id": "f6GkgYwn9JvKLqbGG1zmeD"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"alignMode": 2,
"_target": null,
"_alignFlags": 18,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "aenJ9ZDDRKDoS7u5MxeZOb"
},
{
"__type__": "cc.Node",
"_name": "CountdownSeconds",
@@ -974,7 +1067,7 @@
"_active": true,
"_components": [
{
"__id__": 21
"__id__": 23
}
],
"_prefab": null,
@@ -1001,7 +1094,7 @@
"ctor": "Float64Array",
"array": [
0,
168.421,
181.094,
0,
0,
0,
@@ -1030,7 +1123,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
"__id__": 22
},
"_enabled": true,
"_materials": [
@@ -1064,7 +1157,7 @@
},
"_children": [
{
"__id__": 23
"__id__": 25
}
],
"_active": true,
@@ -1093,7 +1186,7 @@
"ctor": "Float64Array",
"array": [
178,
-217.627,
-179.607,
0,
0,
0,
@@ -1101,7 +1194,7 @@
1,
0.5,
0.5,
1
0.5
]
},
"_eulerAngles": {
@@ -1122,16 +1215,16 @@
"_name": "Background",
"_objFlags": 0,
"_parent": {
"__id__": 22
"__id__": 24
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 24
"__id__": 26
},
{
"__id__": 25
"__id__": 27
}
],
"_prefab": null,
@@ -1187,7 +1280,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
"__id__": 25
},
"_enabled": true,
"_materials": [
@@ -1221,7 +1314,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
"__id__": 25
},
"_enabled": true,
"alignMode": 0,
@@ -1252,7 +1345,7 @@
},
"_children": [
{
"__id__": 27
"__id__": 29
}
],
"_active": true,
@@ -1281,7 +1374,7 @@
"ctor": "Float64Array",
"array": [
395,
-155.562,
-123.879,
0,
0,
0,
@@ -1289,7 +1382,7 @@
1,
0.5,
0.5,
1
0.5
]
},
"_eulerAngles": {
@@ -1310,16 +1403,16 @@
"_name": "Background",
"_objFlags": 0,
"_parent": {
"__id__": 26
"__id__": 28
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 28
"__id__": 30
},
{
"__id__": 29
"__id__": 31
}
],
"_prefab": null,
@@ -1375,7 +1468,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
"__id__": 29
},
"_enabled": true,
"_materials": [
@@ -1409,7 +1502,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
"__id__": 29
},
"_enabled": true,
"alignMode": 0,
@@ -1441,11 +1534,11 @@
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 0,
"_alignFlags": 20,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_bottom": 640,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
@@ -1456,7 +1549,7 @@
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "aenJ9ZDDRKDoS7u5MxeZOb"
"_id": "60S5//1JxMULAtkfxKep87"
},
{
"__type__": "cc.Node",
@@ -1467,16 +1560,16 @@
},
"_children": [
{
"__id__": 32
"__id__": 34
}
],
"_active": true,
"_components": [
{
"__id__": 34
"__id__": 36
},
{
"__id__": 35
"__id__": 37
}
],
"_prefab": null,
@@ -1532,13 +1625,13 @@
"_name": "Joystick",
"_objFlags": 0,
"_parent": {
"__id__": 31
"__id__": 33
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 33
"__id__": 35
}
],
"_prefab": null,
@@ -1594,7 +1687,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
"__id__": 34
},
"_enabled": true,
"_materials": [
@@ -1628,7 +1721,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
"__id__": 33
},
"_enabled": true,
"_materials": [
@@ -1662,7 +1755,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
"__id__": 33
},
"_enabled": true,
"alignMode": 0,
@@ -1719,21 +1812,11 @@
"__id__": 3
},
"_enabled": true,
"BGMEffect": {
"__uuid__": "64a79efa-97de-4cb5-b2a9-01500c60573a"
},
"crashedByTrapBullet": {
"__uuid__": "1d604e42-8cee-466f-884d-e74cae21ce3b"
},
"highScoreTreasurePicked": {
"__uuid__": "0164d22c-d965-461f-867e-b30e2d56cc5c"
},
"treasurePicked": {
"__uuid__": "7704b97e-6367-420c-b7af-d0750a2bbb30"
},
"countDown10SecToEnd": {
"__uuid__": "261d1d7d-a5cc-4cb7-a737-194427055fd4"
},
"BGMEffect": null,
"crashedByTrapBullet": null,
"highScoreTreasurePicked": null,
"treasurePicked": null,
"countDown10SecToEnd": null,
"mapNode": {
"__id__": 3
},
@@ -1791,9 +1874,9 @@
"__id__": 2
},
"_enabled": true,
"alignMode": 0,
"alignMode": 1,
"_target": null,
"_alignFlags": 0,
"_alignFlags": 18,
"_left": 6240,
"_right": -4000,
"_top": -8320,
@@ -1825,10 +1908,10 @@
"__id__": 3
},
"stickhead": {
"__id__": 32
"__id__": 34
},
"base": {
"__id__": 31
"__id__": 33
},
"joyStickEps": 0.1,
"magicLeanLowerBound": 0.414,
@@ -1849,10 +1932,10 @@
"linearMovingEps": 0.1,
"scaleByEps": 0.0375,
"btnA": {
"__id__": 22
"__id__": 24
},
"btnB": {
"__id__": 26
"__id__": 28
},
"_id": "e9oVYTr7ROlpp/IrNjBUmR"
}

View File

@@ -102,7 +102,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 960,
"height": 480
"height": 960
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -114,7 +114,7 @@
"ctor": "Float64Array",
"array": [
480,
240,
480,
0,
0,
0,
@@ -362,7 +362,7 @@
"array": [
0,
0,
210.4394431281402,
209.57814771583418,
0,
0,
0,
@@ -451,7 +451,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 960,
"height": 480
"height": 960
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -2809,10 +2809,10 @@
"_designResolution": {
"__type__": "cc.Size",
"width": 960,
"height": 480
"height": 960
},
"_fitWidth": false,
"_fitHeight": true,
"_fitWidth": true,
"_fitHeight": false,
"_id": "45irrwnU1MAaF3kwQFnJ++"
},
{
@@ -2823,7 +2823,7 @@
"__id__": 2
},
"_enabled": true,
"alignMode": 0,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,

File diff suppressed because it is too large Load Diff