mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-29 03:44:40 +00:00
Removed the misleading hideGhostControls() wrapper method
This commit is contained in:
@@ -275,7 +275,7 @@ export class StructureIconsLayer implements Layer {
|
||||
this.ghostUnit.range?.position.set(localX, localY);
|
||||
this.updateGhostControls(localX, localY, rect);
|
||||
} else {
|
||||
this.hideGhostControls();
|
||||
this.destroyGhostControls();
|
||||
const tile = this.transformHandler.screenToWorldCoordinates(
|
||||
localX,
|
||||
localY,
|
||||
@@ -662,10 +662,6 @@ export class StructureIconsLayer implements Layer {
|
||||
this.ghostControls = null;
|
||||
}
|
||||
|
||||
private hideGhostControls() {
|
||||
this.destroyGhostControls();
|
||||
}
|
||||
|
||||
private updateGhostControls(localX: number, localY: number, rect: DOMRect) {
|
||||
if (
|
||||
!this.ghostUnit ||
|
||||
|
||||
Reference in New Issue
Block a user