Added call to land here button

This commit is contained in:
Pax1601
2023-03-21 21:39:55 +01:00
parent 2d47b93445
commit b3c1cbdba5
3 changed files with 10 additions and 4 deletions

View File

@@ -11,6 +11,12 @@ export class AirbaseContextMenu extends ContextMenu {
document.addEventListener("contextMenuSpawnAirbase", (e: any) => {
this.showSpawnMenu();
})
document.addEventListener("contextMenuLandAirbase", (e: any) => {
if (this.#airbase)
getUnitsManager().selectedUnitsLandAt(this.#airbase.getLatLng());
this.hide();
})
}
setAirbase(airbase: Airbase)