diff --git a/AT3/AT3RadarTargetDisplay.cpp b/AT3/AT3RadarTargetDisplay.cpp index 2ea6d3cd..65157cff 100644 --- a/AT3/AT3RadarTargetDisplay.cpp +++ b/AT3/AT3RadarTargetDisplay.cpp @@ -88,6 +88,14 @@ void AT3RadarTargetDisplay::OnRefresh(HDC hDC, int Phase, HKCPDisplay* Display) dc.SetTextColor(DEFAULT_REDUNDANT.ToCOLORREF()); } + // Override aircraft color conditions + if (fp.GetSectorEntryMinutes() <= 1 && fp.GetSectorEntryMinutes() >= 0 && strlen(fp.GetTrackingControllerId()) == 0) { + aircraftBrush.SetColor(OVERRIDE_AIW); + } + if (strcmp(pd.GetSquawk(), "7700") == 0) { + aircraftBrush.SetColor(OVERRIDE_EMER); + } + // Get and set location POINT acftLocation = Display->ConvertCoordFromPositionToPixel(acft.GetPosition().GetPosition()); PointF acftLabelLocation = PointF(acftLocation.x, acftLocation.y + 15); diff --git a/Constant.hpp b/Constant.hpp index 20b15958..e50f4009 100644 --- a/Constant.hpp +++ b/Constant.hpp @@ -63,6 +63,8 @@ const COLORREF BUTTON_GREY = RGB(140, 140, 140); const Gdiplus::Color DEFAULT_ASSUMED = Gdiplus::Color(241, 246, 255); const Gdiplus::Color DEFAULT_UNCONCERNED = Gdiplus::Color(117, 132, 142); const Gdiplus::Color DEFAULT_REDUNDANT = Gdiplus::Color(229, 214, 130); +const Gdiplus::Color OVERRIDE_AIW = Gdiplus::Color(255, 158, 112); +const Gdiplus::Color OVERRIDE_EMER = Gdiplus::Color(255, 0, 0); inline static bool startsWith(const char *pre, const char *str) {