mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
chore: switched all urls to relative paths
This commit is contained in:
@@ -542,6 +542,10 @@ export class Map extends L.Map {
|
||||
return Object.keys(this.#mapLayers);
|
||||
}
|
||||
|
||||
getMirrors() {
|
||||
return this.#mapMirrors;
|
||||
}
|
||||
|
||||
setSpawnRequestTable(spawnRequestTable: SpawnRequestTable) {
|
||||
this.#spawnRequestTable = spawnRequestTable;
|
||||
}
|
||||
@@ -574,6 +578,17 @@ export class Map extends L.Map {
|
||||
}
|
||||
|
||||
setContextAction(contextAction: ContextAction | null) {
|
||||
//if (contextAction) {
|
||||
// this.getContainer().classList.add(`${contextAction.getId()}-cursor`);
|
||||
// Object.values(getApp().getUnitsManager().getUnits()).forEach((node) => {
|
||||
// if (node instanceof Unit) node.getElement()?.classList.add(`${contextAction.getId()}-cursor`);
|
||||
// });
|
||||
//} else if (this.#contextAction) {
|
||||
// this.getContainer().classList.remove(`${this.#contextAction.getId()}-cursor`);
|
||||
// Object.values(getApp().getUnitsManager().getUnits()).forEach((node) => {
|
||||
// if (node instanceof Unit) node.getElement()?.classList.remove(`${this.#contextAction?.getId()}-cursor`);
|
||||
// });
|
||||
//}
|
||||
this.#contextAction = contextAction;
|
||||
ContextActionChangedEvent.dispatch(this.#contextAction);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*** Unit marker elements ***/
|
||||
[data-object|="unit"] {
|
||||
cursor: pointer;
|
||||
/*cursor: pointer;*/
|
||||
display: flex;
|
||||
height: 100%;
|
||||
justify-content: center;
|
||||
|
||||
@@ -182,3 +182,7 @@
|
||||
path.leaflet-interactive:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.attack-cursor {
|
||||
cursor: url("./images/buttons/context/attack.svg"), auto !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user