Commit fea25b2a authored by liujiangnan's avatar liujiangnan

feat:

parent 2c1dd1de
This diff is collapsed.
......@@ -10,22 +10,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
// this._imageResList.push({ url: this.data.pic_url });
}
orgId = 507;
async onLoadEnd() {
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
this.orgId = middleLayer.getComponent('middleLayer').ORG_ID || 507;
}
if (this.orgId != 507) {
// 数字版
cc.find('Canvas/lxc').active = false;
}
await this.initData();
await this.initView();
this.initListener();
}
rows;
kidInfo;
moreGameFolder: any;
......@@ -78,6 +62,22 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.moreGameFolder = res.rows.find(item => item.name == 'more games');
}
orgId = 507;
async onLoadEnd() {
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
this.orgId = middleLayer.getComponent('middleLayer').ORG_ID || 507;
}
if (this.orgId != 507) {
// 数字版
cc.find('Canvas/lxc').active = false;
}
await this.initData();
await this.initView();
this.initListener();
}
async initView() {
const touchboard = cc.find('Canvas/touchboard');
const contant = cc.find('Canvas/touchboard/contant');
......
......@@ -18,14 +18,14 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetX": -0.5,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 840,
"height": 512,
"rawWidth": 840,
"rawHeight": 512,
"width": 199,
"height": 122,
"rawWidth": 200,
"rawHeight": 122,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 799,
"height": 512,
"width": 200,
"height": 128,
"platformSettings": {},
"subMetas": {
"game": {
......@@ -18,14 +18,14 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetX": -0.5,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 799,
"height": 512,
"rawWidth": 799,
"rawHeight": 512,
"width": 199,
"height": 128,
"rawWidth": 200,
"rawHeight": 128,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 427,
"height": 512,
"width": 200,
"height": 240,
"platformSettings": {},
"subMetas": {
"gate": {
......@@ -18,14 +18,14 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetX": -1,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 426,
"height": 512,
"rawWidth": 427,
"rawHeight": 512,
"width": 198,
"height": 240,
"rawWidth": 200,
"rawHeight": 240,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 699,
"height": 512,
"width": 200,
"height": 146,
"platformSettings": {},
"subMetas": {
"tape": {
......@@ -18,14 +18,14 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetX": -0.5,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 699,
"height": 512,
"rawWidth": 699,
"rawHeight": 512,
"width": 199,
"height": 146,
"rawWidth": 200,
"rawHeight": 146,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 768,
"height": 512,
"width": 200,
"height": 133,
"platformSettings": {},
"subMetas": {
"wave": {
......@@ -22,10 +22,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 768,
"height": 512,
"rawWidth": 768,
"rawHeight": 512,
"width": 200,
"height": 133,
"rawWidth": 200,
"rawHeight": 133,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 422,
"height": 512,
"width": 200,
"height": 243,
"platformSettings": {},
"subMetas": {
"bike": {
......@@ -18,14 +18,14 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetX": -0.5,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 422,
"height": 512,
"rawWidth": 422,
"rawHeight": 512,
"width": 199,
"height": 243,
"rawWidth": 200,
"rawHeight": 243,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 482,
"height": 512,
"width": 200,
"height": 212,
"platformSettings": {},
"subMetas": {
"five": {
......@@ -18,14 +18,14 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetX": -0.5,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 482,
"height": 512,
"rawWidth": 482,
"rawHeight": 512,
"width": 199,
"height": 212,
"rawWidth": 200,
"rawHeight": 212,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 409,
"height": 512,
"width": 200,
"height": 250,
"platformSettings": {},
"subMetas": {
"kite": {
......@@ -19,13 +19,13 @@
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0.5,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 409,
"height": 511,
"rawWidth": 409,
"rawHeight": 512,
"width": 200,
"height": 250,
"rawWidth": 200,
"rawHeight": 250,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 409,
"height": 512,
"width": 200,
"height": 250,
"platformSettings": {},
"subMetas": {
"lime": {
......@@ -18,14 +18,14 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetX": -0.5,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 409,
"height": 512,
"rawWidth": 409,
"rawHeight": 512,
"width": 199,
"height": 250,
"rawWidth": 200,
"rawHeight": 250,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 362,
"height": 512,
"width": 200,
"height": 283,
"platformSettings": {},
"subMetas": {
"nine": {
......@@ -18,14 +18,14 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetX": -1,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 362,
"height": 512,
"rawWidth": 362,
"rawHeight": 512,
"width": 198,
"height": 283,
"rawWidth": 200,
"rawHeight": 283,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 592,
"height": 512,
"width": 200,
"height": 173,
"platformSettings": {},
"subMetas": {
"cube": {
......@@ -18,14 +18,14 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetX": -0.5,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 592,
"height": 512,
"rawWidth": 592,
"rawHeight": 512,
"width": 199,
"height": 173,
"rawWidth": 200,
"rawHeight": 173,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 813,
"height": 512,
"width": 200,
"height": 126,
"platformSettings": {},
"subMetas": {
"home": {
......@@ -18,14 +18,14 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetX": -0.5,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 813,
"height": 512,
"rawWidth": 813,
"rawHeight": 512,
"width": 199,
"height": 126,
"rawWidth": 200,
"rawHeight": 126,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 244,
"height": 512,
"width": 200,
"height": 420,
"platformSettings": {},
"subMetas": {
"tube": {
......@@ -18,14 +18,14 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetX": -1,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 243,
"height": 512,
"rawWidth": 244,
"rawHeight": 512,
"width": 198,
"height": 420,
"rawWidth": 200,
"rawHeight": 420,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 571,
"height": 512,
"width": 200,
"height": 179,
"platformSettings": {},
"subMetas": {
"bay": {
......@@ -22,10 +22,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 571,
"height": 512,
"rawWidth": 571,
"rawHeight": 512,
"width": 200,
"height": 179,
"rawWidth": 200,
"rawHeight": 179,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 500,
"height": 512,
"width": 200,
"height": 205,
"platformSettings": {},
"subMetas": {
"rain": {
......@@ -22,10 +22,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 500,
"height": 512,
"rawWidth": 500,
"rawHeight": 512,
"width": 200,
"height": 205,
"rawWidth": 200,
"rawHeight": 205,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 593,
"height": 512,
"width": 200,
"height": 173,
"platformSettings": {},
"subMetas": {
"bee": {
......@@ -22,10 +22,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 593,
"height": 512,
"rawWidth": 593,
"rawHeight": 512,
"width": 200,
"height": 173,
"rawWidth": 200,
"rawHeight": 173,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 643,
"height": 512,
"width": 200,
"height": 159,
"platformSettings": {},
"subMetas": {
"candy": {
......@@ -19,13 +19,13 @@
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"offsetY": 4,
"trimX": 0,
"trimY": 0,
"width": 643,
"height": 512,
"rawWidth": 643,
"rawHeight": 512,
"width": 200,
"height": 151,
"rawWidth": 200,
"rawHeight": 159,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 389,
"height": 512,
"width": 200,
"height": 263,
"platformSettings": {},
"subMetas": {
"key": {
......@@ -22,10 +22,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 389,
"height": 512,
"rawWidth": 389,
"rawHeight": 512,
"width": 200,
"height": 263,
"rawWidth": 200,
"rawHeight": 263,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 338,
"height": 512,
"width": 200,
"height": 303,
"platformSettings": {},
"subMetas": {
"leaf": {
......@@ -18,14 +18,14 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetX": -1,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 338,
"height": 512,
"rawWidth": 338,
"rawHeight": 512,
"width": 198,
"height": 303,
"rawWidth": 200,
"rawHeight": 303,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 473,
"height": 512,
"width": 200,
"height": 216,
"platformSettings": {},
"subMetas": {
"light": {
......@@ -20,12 +20,12 @@
"rotated": false,
"offsetX": -1,
"offsetY": 0,
"trimX": 0,
"trimX": 2,
"trimY": 0,
"width": 471,
"height": 512,
"rawWidth": 473,
"rawHeight": 512,
"width": 194,
"height": 216,
"rawWidth": 200,
"rawHeight": 216,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1077,
"height": 512,
"width": 200,
"height": 95,
"platformSettings": {},
"subMetas": {
"pie": {
......@@ -18,14 +18,14 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 3,
"offsetX": 0,
"offsetY": 0,
"trimX": 6,
"trimX": 0,
"trimY": 0,
"width": 1071,
"height": 512,
"rawWidth": 1077,
"rawHeight": 512,
"width": 200,
"height": 95,
"rawWidth": 200,
"rawHeight": 95,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 342,
"height": 512,
"width": 200,
"height": 299,
"platformSettings": {},
"subMetas": {
"spy": {
......@@ -18,14 +18,14 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetX": -1,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 341,
"height": 512,
"rawWidth": 342,
"rawHeight": 512,
"width": 198,
"height": 299,
"rawWidth": 200,
"rawHeight": 299,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -22,10 +22,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 584,
"height": 512,
"rawWidth": 584,
"rawHeight": 512,
"width": 200,
"height": 175,
"rawWidth": 200,
"rawHeight": 175,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 713,
"height": 512,
"width": 200,
"height": 144,
"platformSettings": {},
"subMetas": {
"bow": {
......@@ -22,10 +22,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 713,
"height": 512,
"rawWidth": 713,
"rawHeight": 512,
"width": 200,
"height": 144,
"rawWidth": 200,
"rawHeight": 144,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -22,10 +22,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 941,
"height": 512,
"rawWidth": 941,
"rawHeight": 512,
"width": 200,
"height": 109,
"rawWidth": 200,
"rawHeight": 109,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 589,
"height": 512,
"width": 200,
"height": 174,
"platformSettings": {},
"subMetas": {
"fruit": {
......@@ -18,14 +18,14 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetX": -0.5,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 589,
"height": 512,
"rawWidth": 589,
"rawHeight": 512,
"width": 199,
"height": 174,
"rawWidth": 200,
"rawHeight": 174,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 519,
"height": 512,
"width": 200,
"height": 197,
"platformSettings": {},
"subMetas": {
"moon": {
......@@ -22,10 +22,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 519,
"height": 512,
"rawWidth": 519,
"rawHeight": 512,
"width": 200,
"height": 197,
"rawWidth": 200,
"rawHeight": 197,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 686,
"height": 512,
"width": 200,
"height": 149,
"platformSettings": {},
"subMetas": {
"new": {
......@@ -18,14 +18,14 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 1.5,
"offsetY": -1,
"trimX": 3,
"trimY": 2,
"width": 683,
"height": 510,
"rawWidth": 686,
"rawHeight": 512,
"offsetX": 0.5,
"offsetY": -1.5,
"trimX": 1,
"trimY": 3,
"width": 199,
"height": 146,
"rawWidth": 200,
"rawHeight": 149,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 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