mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
refactor: temporary engagement ring color is now the same as fixed one
This commit is contained in:
parent
600b649449
commit
36a80c8708
@ -453,14 +453,12 @@ export abstract class Unit extends CustomMarker {
|
||||
});
|
||||
this.#temporaryEngagementCircle = new RangeCircle(this.getPosition(), {
|
||||
radius: 0,
|
||||
weight: 3,
|
||||
opacity: 0.8,
|
||||
fillOpacity: 0.02,
|
||||
weight: 4,
|
||||
opacity: 1,
|
||||
fillOpacity: 0,
|
||||
dashArray: "4 8",
|
||||
interactive: false,
|
||||
bubblingMouseEvents: false,
|
||||
color: '#f6b13b',
|
||||
stroke: true
|
||||
});
|
||||
|
||||
this.#racetrackPolylines = [
|
||||
@ -1648,6 +1646,17 @@ export abstract class Unit extends CustomMarker {
|
||||
&& this.#engagementRange > 0) {
|
||||
this.#temporaryEngagementCircle.setLatLng(this.getPosition());
|
||||
this.#temporaryEngagementCircle.setRadius(this.#engagementRange);
|
||||
switch (this.getCoalition()) {
|
||||
case "red":
|
||||
this.#temporaryEngagementCircle.options.color = adjustBrightness(colors.RED_COALITION, -20);
|
||||
break;
|
||||
case "blue":
|
||||
this.#temporaryEngagementCircle.options.color = adjustBrightness(colors.BLUE_COALITION, -20);
|
||||
break;
|
||||
default:
|
||||
this.#temporaryEngagementCircle.options.color = adjustBrightness(colors.NEUTRAL_COALITION, -20);
|
||||
break;
|
||||
}
|
||||
this.#temporaryEngagementCircle.addTo(getApp().getMap());
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user