From 8539314984519bdea684631bba94891e95347c40 Mon Sep 17 00:00:00 2001 From: Pax1601 Date: Wed, 3 May 2023 09:22:00 +0200 Subject: [PATCH] Takeoff task changed to TakeoffParkingHot --- client/public/stylesheets/contextmenus.css | 1 + client/src/controls/contextmenu.ts | 4 ++-- client/src/controls/mapcontextmenu.ts | 1 - scripts/OlympusCommand.lua | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/public/stylesheets/contextmenus.css b/client/public/stylesheets/contextmenus.css index 606f197f..c854f221 100644 --- a/client/public/stylesheets/contextmenus.css +++ b/client/public/stylesheets/contextmenus.css @@ -167,6 +167,7 @@ #unit-image { width: 100px; + height: 100px; filter: invert(100%); margin-top: 10px; margin-bottom: 10px; diff --git a/client/src/controls/contextmenu.ts b/client/src/controls/contextmenu.ts index 4f8db9ae..9a19562f 100644 --- a/client/src/controls/contextmenu.ts +++ b/client/src/controls/contextmenu.ts @@ -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"; } } } \ No newline at end of file diff --git a/client/src/controls/mapcontextmenu.ts b/client/src/controls/mapcontextmenu.ts index 20c4c4c5..8faeddef 100644 --- a/client/src/controls/mapcontextmenu.ts +++ b/client/src/controls/mapcontextmenu.ts @@ -135,7 +135,6 @@ export class MapContextMenu extends ContextMenu { image.src = `images/units/${aircraftDatabase.getByLabel(label)?.filename}`; image.classList.toggle("hide", false); } - this.clip(); } diff --git a/scripts/OlympusCommand.lua b/scripts/OlympusCommand.lua index 2dedadda..f3602cc3 100644 --- a/scripts/OlympusCommand.lua +++ b/scripts/OlympusCommand.lua @@ -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,