More work on React components

This commit is contained in:
Davide Passoni
2024-04-09 18:12:05 +02:00
parent 8e9e6749db
commit 45e290d656
33 changed files with 528 additions and 500 deletions

View File

@@ -160,8 +160,8 @@ export class Weapon extends CustomMarker {
/********************** Visibility *************************/
updateVisibility() {
const hiddenUnits = getApp().getMap().getHiddenTypes();
var hidden = (hiddenUnits.includes(this.getMarkerCategory())) ||
(hiddenUnits.includes(this.#coalition)) ||
var hidden = (hiddenUnits[this.getMarkerCategory()]) ||
(hiddenUnits[this.#coalition]) ||
(!this.belongsToCommandedCoalition() && this.#detectionMethods.length == 0);
this.setHidden(hidden || !this.#alive);