Commit e5bc3adb authored by spc's avatar spc

modified: project/src/canvas/game/src/xiaoxiaole/XxlScene.ts

parent b73ec4b5
...@@ -256,12 +256,7 @@ export class XxlScene extends Scene { ...@@ -256,12 +256,7 @@ export class XxlScene extends Scene {
this.x = (Ins.stageW - 750) >> 1; this.x = (Ins.stageW - 750) >> 1;
this.y = (Ins.stageH - 1624) >> 1; this.y = (Ins.stageH - 1624) >> 1;
this.backBtn = Tools.getSprite(resCanvasList['334aff33-1a9e-4277-aafe-3d9f22eab3d5'].url, 0, 20 + 1624 / 2 - this.stage.viewRect.height / 2)
this.backBtn.mouseEnable = true
this.backBtn.addEventListener(FYGE.MouseEvent.MOUSE_DOWN, () => {
sendTbNet(TbNetName.backToPage, {}, (s, res) => { console.log('backToPage') })
}, this)
this.addChild(this.backBtn)
//顶部分数 //顶部分数
this.topContainer = new FYGE.Container() this.topContainer = new FYGE.Container()
...@@ -468,6 +463,12 @@ export class XxlScene extends Scene { ...@@ -468,6 +463,12 @@ export class XxlScene extends Scene {
expendHexIndices.push(...i) expendHexIndices.push(...i)
} }
this.backBtn = Tools.getSprite(resCanvasList['334aff33-1a9e-4277-aafe-3d9f22eab3d5'].url, 0, 20 + 1624 / 2 - this.stage.viewRect.height / 2)
this.backBtn.mouseEnable = true
this.backBtn.addEventListener(FYGE.MouseEvent.MOUSE_DOWN, () => {
sendTbNet(TbNetName.backToPage, {}, (s, res) => { console.log('backToPage') })
}, this)
this.addChild(this.backBtn)
//初始化 //初始化
for (let i of expendHexIndices) { for (let i of expendHexIndices) {
......
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