Add back the "selected only" flight plans layer.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2058
This commit is contained in:
Dan Albert
2022-03-07 18:06:30 -08:00
parent ca640ebabe
commit cf7c7d853f
3 changed files with 28 additions and 4 deletions

View File

@@ -11,10 +11,11 @@ const SELECTED_PATH = "#ffff00";
interface FlightPlanProps {
flight: Flight;
selected: boolean;
highlight?: boolean;
}
const pathColor = (props: FlightPlanProps) => {
if (props.selected) {
if (props.selected && props.highlight) {
return SELECTED_PATH;
} else if (props.flight.blue) {
return BLUE_PATH;