Commit 3ad86232 authored by 李维's avatar 李维

fix: test

parent 96c07869
......@@ -78,22 +78,22 @@
"__id__": 8
},
{
"__id__": 13
"__id__": 12
},
{
"__id__": 16
"__id__": 15
}
],
"_active": true,
"_components": [
{
"__id__": 25
"__id__": 24
},
{
"__id__": 26
"__id__": 25
},
{
"__id__": 27
"__id__": 26
}
],
"_prefab": null,
......@@ -381,9 +381,6 @@
},
{
"__id__": 10
},
{
"__id__": 11
}
],
"_prefab": null,
......@@ -466,33 +463,6 @@
"_atlas": null,
"_id": "63utL93tpNEJlTxuyYFF+L"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 50,
"_right": 0,
"_top": 50,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "02+HX++hBNMKzKrRfAnSDQ"
},
{
"__type__": "cc.Button",
"_name": "",
......@@ -507,7 +477,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 12
"__id__": 11
}
],
"_N$interactable": true,
......@@ -588,10 +558,10 @@
"_active": true,
"_components": [
{
"__id__": 14
"__id__": 13
},
{
"__id__": 15
"__id__": 14
}
],
"_prefab": null,
......@@ -617,8 +587,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-582,
424.68,
-580,
420,
0,
0,
0,
......@@ -647,7 +617,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
"__id__": 12
},
"_enabled": true,
"_materials": [
......@@ -680,15 +650,15 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
"__id__": 12
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 250,
"_left": 252,
"_right": 0,
"_top": 75,
"_top": 79.68,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
......@@ -711,7 +681,7 @@
},
"_children": [
{
"__id__": 17
"__id__": 16
}
],
"_active": true,
......@@ -769,17 +739,17 @@
"_name": "scroll_view",
"_objFlags": 0,
"_parent": {
"__id__": 16
"__id__": 15
},
"_children": [
{
"__id__": 18
"__id__": 17
}
],
"_active": true,
"_components": [
{
"__id__": 24
"__id__": 23
}
],
"_prefab": null,
......@@ -835,20 +805,20 @@
"_name": "content",
"_objFlags": 0,
"_parent": {
"__id__": 17
"__id__": 16
},
"_children": [
{
"__id__": 19
"__id__": 18
},
{
"__id__": 21
"__id__": 20
}
],
"_active": true,
"_components": [
{
"__id__": 23
"__id__": 22
}
],
"_prefab": null,
......@@ -904,13 +874,13 @@
"_name": "line1",
"_objFlags": 0,
"_parent": {
"__id__": 18
"__id__": 17
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 20
"__id__": 19
}
],
"_prefab": null,
......@@ -966,7 +936,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
"__id__": 18
},
"_enabled": true,
"_layoutSize": {
......@@ -998,13 +968,13 @@
"_name": "line2",
"_objFlags": 0,
"_parent": {
"__id__": 18
"__id__": 17
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 22
"__id__": 21
}
],
"_prefab": null,
......@@ -1060,7 +1030,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
"__id__": 20
},
"_enabled": true,
"_layoutSize": {
......@@ -1092,7 +1062,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
"__id__": 17
},
"_enabled": true,
"_layoutSize": {
......@@ -1124,7 +1094,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
"__id__": 16
},
"_enabled": true,
"horizontal": true,
......@@ -1136,10 +1106,10 @@
"scrollEvents": [],
"cancelInnerEvents": true,
"_N$content": {
"__id__": 18
"__id__": 17
},
"content": {
"__id__": 18
"__id__": 17
},
"_id": "30yHDRW1FLSaYTIlriOrwH"
},
......@@ -1196,13 +1166,13 @@
},
"_enabled": true,
"gameListContainer": {
"__id__": 16
"__id__": 15
},
"gameCardPrefab": {
"__uuid__": "3e0857f7-c988-4162-90e4-5e6c1887c3d6"
},
"scrollView": {
"__id__": 24
"__id__": 23
},
"_id": "36tZootWRFMaA7LPmJ+XR/"
}
......
......@@ -43,9 +43,11 @@ export default class GameCenter extends cc.Component {
const canvas = cc.find("middleLayer");
canvas.getComponent(cc.Widget).updateAlignment();
const backBtn = cc.find("middleLayer/back_btn");
backBtn.x = 80;
backBtn.y = 0;
const backBtn = cc.find("Canvas/back_btn");
backBtn.x = -canvas.width/2 + 50 + backBtn.width/2;
backBtn.y = canvas.height/2 - 50 - backBtn.height/2;
console.log( backBtn.x, backBtn.y)
}
private initComponents() {
......
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