Added ability to draw coalition areas (WIP)

This commit is contained in:
Davide Passoni
2024-07-26 17:00:09 +02:00
parent b993786301
commit 2d90c359f7
575 changed files with 300 additions and 24084 deletions

View File

@@ -102,8 +102,8 @@ import {
import { FaXmarksLines } from "react-icons/fa6";
var pathIcon = new Icon({
iconUrl: "/images/markers/marker-icon.png",
shadowUrl: "/images/markers/marker-shadow.png",
iconUrl: "/vite/images/markers/marker-icon.png",
shadowUrl: "/vite/images/markers/marker-shadow.png",
iconAnchor: [13, 41],
});
@@ -991,7 +991,7 @@ export abstract class Unit extends CustomMarker {
)
marker = this.getDatabaseEntry()?.markerFile ?? this.getDefaultMarker();
else marker = "aircraft";
img.src = `/images/units/${marker}.svg`;
img.src = `/vite/images/units/${marker}.svg`;
img.onload = () => SVGInjector(img);
unitIcon.appendChild(img);
@@ -1486,9 +1486,6 @@ export abstract class Unit extends CustomMarker {
faExclamation,
() => this.applyFollowOptions("custom", units)
);
//getApp().getMap().getUnitContextMenu().setContextActions(contextActionSet);
getApp().getMap().showUnitContextMenu();
}
applyFollowOptions(formation: string, units: Unit[]) {