chore: switched all urls to relative paths

This commit is contained in:
Davide Passoni
2024-12-09 10:18:58 +01:00
parent a4452aee94
commit 96899121f7
15 changed files with 43 additions and 52 deletions

View File

@@ -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);
}

View File

@@ -1,6 +1,6 @@
/*** Unit marker elements ***/
[data-object|="unit"] {
cursor: pointer;
/*cursor: pointer;*/
display: flex;
height: 100%;
justify-content: center;

View File

@@ -182,3 +182,7 @@
path.leaflet-interactive:focus {
outline: none;
}
.attack-cursor {
cursor: url("./images/buttons/context/attack.svg"), auto !important;
}