Commit ff263ea3 authored by limingzhe's avatar limingzhe

fix: debug

parent 5e8d3846
......@@ -414,6 +414,7 @@ cc.Class({
this.initPanel();
this.initColorPanel();
this.showBackBtn();
// this._textureIdMapDataContainer = {};
......@@ -446,6 +447,22 @@ cc.Class({
// });
},
showBackBtn() {
const backBtn = cc.find('Canvas/back_btn');
backBtn.active = true;
backBtn.zIndex = 30;
backBtn.on('touchstart', () => {
const middleLayer = global["middleLayer"];
if (middleLayer) {
// 有些模板需要在返回时上报数据,直接把数据作为参数传入就可以了
middleLayer.exitGame({});
} else {
console.log("==触发返回事件==");
}
})
},
initTitle() {
const title = cc.find('Canvas/bg/title');
......
{
"ver": "2.3.5",
"uuid": "2d75d35c-e475-4239-a784-98de8f3daddf",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 973,
"height": 506,
"platformSettings": {},
"subMetas": {
"panel_old": {
"ver": "1.0.4",
"uuid": "457c77b8-9091-4d51-b7f0-c6e85dd1e09d",
"rawTextureUuid": "2d75d35c-e475-4239-a784-98de8f3daddf",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 973,
"height": 506,
"rawWidth": 973,
"rawHeight": 506,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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