| | |
| | | |
| | | this.mapContainer.parent.on('mouseup', (event) => { |
| | | if (isSelecting) { |
| | | // sprite show style which be selected |
| | | if (this.selectedSprites && this.selectedSprites.length > 0) { |
| | | this.selectedSprites.forEach(child => { |
| | | Utils.unMarkSprite(child); |
| | |
| | | } |
| | | this.selectedSprites = []; |
| | | |
| | | // sprite show style which be selected |
| | | this.mapContainer.children.forEach(child => { |
| | | if (Utils.isSpriteInSelectionBox(child, this.selectionBox)) { |
| | | this.selectedSprites.push(child); |
| | |
| | | this.activateMapEvent(Utils.MapEvent.SELECTION_BOX, fn); |
| | | }); |
| | | } |
| | | |
| | | // sprites batch move |
| | | // Utils.spriteListBeMovable(this.selectedSprites, () => { |
| | | // this.activateMapEvent(Utils.MapEvent.SELECTION_BOX, fn); |
| | | // }); |
| | | |
| | | } |
| | | |