Browse Source

use the standard color and a * to indicate if a plan is fixed or not

Sven Czarnian 3 years ago
parent
commit
0fc113cd2d
1 changed files with 2 additions and 8 deletions
  1. 2 8
      src/PlugIn.cpp

+ 2 - 8
src/PlugIn.cpp

@@ -458,8 +458,7 @@ void PlugIn::OnGetTagItem(EuroScopePlugIn::CFlightPlan flightPlan, EuroScopePlug
 
             /* inbound expected, but not available */
             if (this->m_inbounds.cend() == it && (true == forced || true == planExpected)) {
-                std::strcpy(itemString, "??:??");
-                *colorCode = EuroScopePlugIn::TAG_COLOR_INFORMATION;
+                std::strcpy(itemString, "* ??:??");
             }
             /* inbound is available */
             else if (this->m_inbounds.cend() != it) {
@@ -468,14 +467,9 @@ void PlugIn::OnGetTagItem(EuroScopePlugIn::CFlightPlan flightPlan, EuroScopePlug
                 const auto seconds = std::abs(ttl) % 60;
 
                 std::stringstream stream;
-                stream << std::setw(2) << std::setfill('0') << minutes << ":"
+                stream << (true == it->second.fixedPlan() ? "" : "* ") << std::setw(2) << std::setfill('0') << minutes << ":"
                        << std::setw(2) << std::setfill('0') << seconds;
                 std::strcpy(itemString, stream.str().c_str());
-
-                if (false == it->second.fixedPlan())
-                    *colorCode = EuroScopePlugIn::TAG_COLOR_INFORMATION;
-                else
-                    *colorCode = EuroScopePlugIn::TAG_COLOR_DEFAULT;
             }
             else {
                 gsl::at(tagString, 0) = '\0';