| | |
| | | |
| | | this.mapContainer = generatePixiContainer('mapContainer'); |
| | | this.app.stage.addChild(this.mapContainer); |
| | | this.app.view.addEventListener('contextmenu', (event) => { |
| | | event.preventDefault(); |
| | | }); |
| | | |
| | | // this.activateMapEvent(null); |
| | | this.activateMapScale(); |
| | |
| | | isSelecting = false; |
| | | this.selectionBox.clear(); |
| | | |
| | | |
| | | // batch move |
| | | // sprites batch move |
| | | Utils.spriteListBeMovable(this.selectedSprites, this.scale, () => { |
| | | this.activateMapEvent(Utils.MapEvent.SELECTION_BOX); |
| | | }); |
| | |
| | | }) |
| | | app.stage.eventMode = 'static'; |
| | | app.stage.hitArea = app.screen; |
| | | app.view.addEventListener('contextmenu', (event) => { |
| | | event.preventDefault(); |
| | | }); |
| | | return app; |
| | | } |
| | | |