Commit aeba1710 authored by 李维's avatar 李维

feat:测试布局

parent 9d28e89c
......@@ -81,19 +81,19 @@
"__id__": 13
},
{
"__id__": 17
"__id__": 16
}
],
"_active": true,
"_components": [
{
"__id__": 26
"__id__": 25
},
{
"__id__": 27
"__id__": 26
},
{
"__id__": 28
"__id__": 27
}
],
"_prefab": null,
......@@ -397,8 +397,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 68,
"height": 68
"width": 128,
"height": 128
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -409,8 +409,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-868,
448,
-846,
426,
0,
0,
0,
......@@ -477,9 +477,9 @@
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 58,
"_left": 50,
"_right": 0,
"_top": 58,
"_top": 50,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
......@@ -577,81 +577,19 @@
"handler": "onClickBack",
"customEventData": ""
},
{
"__type__": "cc.Node",
"_name": "header",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 14
},
{
"__id__": 16
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 800,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-397.08,
442.044,
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": "c5Kwn37rFBJogCgvlRhU93"
},
{
"__type__": "cc.Node",
"_name": "title_label",
"_objFlags": 0,
"_parent": {
"__id__": 13
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 14
},
{
"__id__": 15
}
......@@ -667,8 +605,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 128,
"height": 40.32
"width": 256,
"height": 80.64
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -679,8 +617,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
-582,
424.68,
0,
0,
0,
......@@ -709,7 +647,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
"__id__": 13
},
"_enabled": true,
"_materials": [
......@@ -721,8 +659,8 @@
"_dstBlendFactor": 771,
"_string": "游戏广场",
"_N$string": "游戏广场",
"_fontSize": 32,
"_lineHeight": 32,
"_fontSize": 64,
"_lineHeight": 64,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
......@@ -738,62 +676,31 @@
"_id": "edOtIKUDdHJanv0iuIsgPx"
},
{
"__type__": "cc.Node",
"_name": "icon_back",
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"_parent": {
"node": {
"__id__": 13
},
"_children": [],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_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": "abBn52Pk5CuLG3cVNbL2r1"
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 250,
"_right": 0,
"_top": 75,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "78a3DbOKtCtaFfcLZHAk2e"
},
{
"__type__": "cc.Node",
......@@ -804,7 +711,7 @@
},
"_children": [
{
"__id__": 18
"__id__": 17
}
],
"_active": true,
......@@ -862,17 +769,17 @@
"_name": "scroll_view",
"_objFlags": 0,
"_parent": {
"__id__": 17
"__id__": 16
},
"_children": [
{
"__id__": 19
"__id__": 18
}
],
"_active": true,
"_components": [
{
"__id__": 25
"__id__": 24
}
],
"_prefab": null,
......@@ -928,20 +835,20 @@
"_name": "content",
"_objFlags": 0,
"_parent": {
"__id__": 18
"__id__": 17
},
"_children": [
{
"__id__": 20
"__id__": 19
},
{
"__id__": 22
"__id__": 21
}
],
"_active": true,
"_components": [
{
"__id__": 24
"__id__": 23
}
],
"_prefab": null,
......@@ -997,13 +904,13 @@
"_name": "line1",
"_objFlags": 0,
"_parent": {
"__id__": 19
"__id__": 18
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 21
"__id__": 20
}
],
"_prefab": null,
......@@ -1059,7 +966,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
"__id__": 19
},
"_enabled": true,
"_layoutSize": {
......@@ -1091,13 +998,13 @@
"_name": "line2",
"_objFlags": 0,
"_parent": {
"__id__": 19
"__id__": 18
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 23
"__id__": 22
}
],
"_prefab": null,
......@@ -1153,7 +1060,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
"__id__": 21
},
"_enabled": true,
"_layoutSize": {
......@@ -1185,7 +1092,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
"__id__": 18
},
"_enabled": true,
"_layoutSize": {
......@@ -1217,7 +1124,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
"__id__": 17
},
"_enabled": true,
"horizontal": true,
......@@ -1229,10 +1136,10 @@
"scrollEvents": [],
"cancelInnerEvents": true,
"_N$content": {
"__id__": 19
"__id__": 18
},
"content": {
"__id__": 19
"__id__": 18
},
"_id": "30yHDRW1FLSaYTIlriOrwH"
},
......@@ -1289,13 +1196,13 @@
},
"_enabled": true,
"gameListContainer": {
"__id__": 17
"__id__": 16
},
"gameCardPrefab": {
"__uuid__": "3e0857f7-c988-4162-90e4-5e6c1887c3d6"
},
"scrollView": {
"__id__": 25
"__id__": 24
},
"_id": "36tZootWRFMaA7LPmJ+XR/"
}
......
......@@ -39,6 +39,9 @@ export default class GameCenter extends cc.Component {
start() {
this.getGameList();
const canvas = cc.find("Canvas");
canvas.getComponent(cc.Widget).updateAlignment();
}
private initComponents() {
......
......@@ -776,8 +776,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 68,
"height": 68
"width": 128,
"height": 128
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -826,9 +826,9 @@
"__id__": 2
},
"_alignFlags": 9,
"_left": 24,
"_left": 50,
"_right": 0,
"_top": 24,
"_top": 50,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment