Commit bb36ec63 authored by 李维's avatar 李维

fix: test

parent a4819124
......@@ -78,22 +78,22 @@
"__id__": 8
},
{
"__id__": 12
"__id__": 13
},
{
"__id__": 15
"__id__": 16
}
],
"_active": true,
"_components": [
{
"__id__": 24
},
{
"__id__": 25
},
{
"__id__": 26
},
{
"__id__": 27
}
],
"_prefab": null,
......@@ -107,8 +107,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1920,
"height": 1080
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -119,8 +119,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
960,
540,
640,
360,
0,
0,
0,
......@@ -169,8 +169,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 960,
"height": 640
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -270,8 +270,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1920,
"height": 1080
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -381,6 +381,9 @@
},
{
"__id__": 10
},
{
"__id__": 12
}
],
"_prefab": null,
......@@ -394,8 +397,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 128,
"height": 128
"width": 68,
"height": 68
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -406,8 +409,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-846,
426,
-581,
301,
0,
0,
0,
......@@ -547,6 +550,33 @@
"handler": "onClickBack",
"customEventData": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 25,
"_right": 0,
"_top": 25,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "39EenNBAhIUKVpj59xfD2A"
},
{
"__type__": "cc.Node",
"_name": "title_label",
......@@ -558,10 +588,10 @@
"_active": true,
"_components": [
{
"__id__": 13
"__id__": 14
},
{
"__id__": 14
"__id__": 15
}
],
"_prefab": null,
......@@ -575,8 +605,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 256,
"height": 80.64
"width": 128,
"height": 40.32
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -587,8 +617,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-580,
420,
-456,
299.84,
0,
0,
0,
......@@ -617,7 +647,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
"__id__": 13
},
"_enabled": true,
"_materials": [
......@@ -629,8 +659,8 @@
"_dstBlendFactor": 771,
"_string": "游戏广场",
"_N$string": "游戏广场",
"_fontSize": 64,
"_lineHeight": 64,
"_fontSize": 32,
"_lineHeight": 32,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
......@@ -650,15 +680,15 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
"__id__": 13
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 252,
"_left": 120,
"_right": 0,
"_top": 79.68,
"_top": 40,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
......@@ -681,7 +711,7 @@
},
"_children": [
{
"__id__": 16
"__id__": 17
}
],
"_active": true,
......@@ -739,17 +769,17 @@
"_name": "scroll_view",
"_objFlags": 0,
"_parent": {
"__id__": 15
"__id__": 16
},
"_children": [
{
"__id__": 17
"__id__": 18
}
],
"_active": true,
"_components": [
{
"__id__": 23
"__id__": 24
}
],
"_prefab": null,
......@@ -805,20 +835,20 @@
"_name": "content",
"_objFlags": 0,
"_parent": {
"__id__": 16
"__id__": 17
},
"_children": [
{
"__id__": 18
"__id__": 19
},
{
"__id__": 20
"__id__": 21
}
],
"_active": true,
"_components": [
{
"__id__": 22
"__id__": 23
}
],
"_prefab": null,
......@@ -874,13 +904,13 @@
"_name": "line1",
"_objFlags": 0,
"_parent": {
"__id__": 17
"__id__": 18
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 19
"__id__": 20
}
],
"_prefab": null,
......@@ -936,7 +966,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
"__id__": 19
},
"_enabled": true,
"_layoutSize": {
......@@ -968,13 +998,13 @@
"_name": "line2",
"_objFlags": 0,
"_parent": {
"__id__": 17
"__id__": 18
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 21
"__id__": 22
}
],
"_prefab": null,
......@@ -1030,7 +1060,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
"__id__": 21
},
"_enabled": true,
"_layoutSize": {
......@@ -1062,7 +1092,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
"__id__": 18
},
"_enabled": true,
"_layoutSize": {
......@@ -1094,7 +1124,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
"__id__": 17
},
"_enabled": true,
"horizontal": true,
......@@ -1106,10 +1136,10 @@
"scrollEvents": [],
"cancelInnerEvents": true,
"_N$content": {
"__id__": 17
"__id__": 18
},
"content": {
"__id__": 17
"__id__": 18
},
"_id": "30yHDRW1FLSaYTIlriOrwH"
},
......@@ -1123,8 +1153,8 @@
"_enabled": true,
"_designResolution": {
"__type__": "cc.Size",
"width": 1920,
"height": 1080
"width": 1280,
"height": 720
},
"_fitWidth": true,
"_fitHeight": true,
......@@ -1166,13 +1196,13 @@
},
"_enabled": true,
"gameListContainer": {
"__id__": 15
"__id__": 16
},
"gameCardPrefab": {
"__uuid__": "3e0857f7-c988-4162-90e4-5e6c1887c3d6"
},
"scrollView": {
"__id__": 23
"__id__": 24
},
"_id": "36tZootWRFMaA7LPmJ+XR/"
}
......
......@@ -40,14 +40,11 @@ export default class GameCenter extends cc.Component {
start() {
this.getGameList();
const canvas = cc.find("middleLayer");
canvas.getComponent(cc.Widget).updateAlignment();
// const backBtn = cc.find("Canvas/back_btn");
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)
// 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() {
......
......@@ -313,7 +313,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 360
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -498,7 +498,7 @@
"ctor": "Float64Array",
"array": [
125,
-124.56,
-304.56,
0,
0,
0,
......@@ -1192,8 +1192,8 @@
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 180,
"_bottom": 180,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
......
......@@ -210,9 +210,6 @@ export default class middleLayer extends cc.Component {
// 运行主场景
this.runMainScene();
const middleLayer = cc.find("middleLayer");
middleLayer.getComponent(cc.Widget).updateAlignment();
// this.homework_id = homework_id;
// this.syllabus_id = syllabus_id;
......
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