mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Color navmesh zones based on threat.
This commit is contained in:
@@ -904,10 +904,13 @@ function drawThreatZones() {
|
||||
|
||||
function drawNavmesh(zones, layer) {
|
||||
for (const zone of zones) {
|
||||
L.polyline(zone, {
|
||||
L.polyline(zone.poly, {
|
||||
color: "#000000",
|
||||
weight: 1,
|
||||
fill: false,
|
||||
fillColor: zone.threatened ? "#ff0000" : "#00ff00",
|
||||
fill: true,
|
||||
fillOpacity: 0.1,
|
||||
noClip: true,
|
||||
interactive: false,
|
||||
}).addTo(layer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user