ui: Feature Status display conditions (#283)

This commit is contained in:
Jason Wen
2023-09-21 21:35:55 -04:00
committed by GitHub
parent 65e08b51a0
commit b1bb33418e
+14 -3
View File
@@ -1514,9 +1514,20 @@ void AnnotatedCameraWidget::drawFeatureStatusText(QPainter &p, int x, int y) {
y += text_height;
};
drawFeatureStatusElement(longitudinalPersonality, feature_text.gac_list_text, feature_color.gac_list_color, longitudinal, "N/A", "GAP"); // Driving Personality / Gap Adjust Cruise
drawFeatureStatusElement(dynamicLaneProfile, feature_text.dlp_list_text, feature_color.dlp_list_color, uiState()->scene.dynamic_lane_profile_toggle, "OFF", "DLP"); // Dynamic Lane Profile
drawFeatureStatusElement(int(slcState), feature_text.slc_list_text, feature_color.slc_list_color, uiState()->scene.speed_limit_control_enabled, "OFF", "SLC"); // Speed Limit Control
// Driving Personality / Gap Adjust Cruise
if (longitudinal) {
drawFeatureStatusElement(longitudinalPersonality, feature_text.gac_list_text, feature_color.gac_list_color, longitudinal, "N/A", "GAP");
}
// Dynamic Lane Profile
if (uiState()->scene.dynamic_lane_profile_toggle) {
drawFeatureStatusElement(dynamicLaneProfile, feature_text.dlp_list_text, feature_color.dlp_list_color, uiState()->scene.dynamic_lane_profile_toggle, "OFF", "DLP");
}
// Speed Limit Control
if (longitudinal || !cp.getPcmCruiseSpeed()) {
drawFeatureStatusElement(int(slcState), feature_text.slc_list_text, feature_color.slc_list_color, uiState()->scene.speed_limit_control_enabled, "OFF", "SLC");
}
}