Merge pull request #249 from Pax1601/213-request-spawn-on-airfield

Takeoff task changed to TakeoffParkingHot
This commit is contained in:
Pax1601 2023-05-03 09:22:21 +02:00 committed by GitHub
commit 9eb01654c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -167,6 +167,7 @@
#unit-image {
width: 100px;
height: 100px;
filter: invert(100%);
margin-top: 10px;
margin-bottom: 10px;

View File

@ -49,12 +49,12 @@ export class ContextMenu {
if (this.#x + this.#container.offsetWidth < window.innerWidth)
this.#container.style.left = this.#x + "px";
else
this.#container.style.left = window.innerWidth - this.#container.offsetWidth + "px";
this.#container.style.left = window.innerWidth - this.#container.offsetWidth - 10 + "px";
if (this.#y + this.#container.offsetHeight < window.innerHeight)
this.#container.style.top = this.#y + "px";
else
this.#container.style.top = window.innerHeight - this.#container.offsetHeight + "px";
this.#container.style.top = window.innerHeight - this.#container.offsetHeight - 10 + "px";
}
}
}

View File

@ -135,7 +135,6 @@ export class MapContextMenu extends ContextMenu {
image.src = `images/units/${aircraftDatabase.getByLabel(label)?.filename}`;
image.classList.toggle("hide", false);
}
this.clip();
}

View File

@ -321,13 +321,13 @@ function Olympus.spawnAircraft(coalition, unitType, lat, lng, spawnOptions)
{
[1] =
{
["action"] = "From Runway",
["action"] = "From Parking Area Hot",
["task"] =
{
["id"] = "ComboTask",
["params"] = {["tasks"] = {},},
},
["type"] = "TakeOff",
["type"] = "TakeOffParkingHot",
["ETA"] = 0,
["ETA_locked"] = true,
["x"] = spawnLocation.x,