|
|
|
@ -729,7 +729,7 @@ void HudElements::battery(){
|
|
|
|
|
ImGui::PushFont(HUDElements.sw_stats->font1);
|
|
|
|
|
ImGui::Text("W");
|
|
|
|
|
ImGui::PopFont();
|
|
|
|
|
ImGui::TableNextRow(); ImGui::TableNextColumn(); ImGui::TableNextColumn(); ImGui::TableNextColumn();
|
|
|
|
|
ImGui::TableNextRow(); ImGui::TableNextColumn();
|
|
|
|
|
float hours;
|
|
|
|
|
float minutes;
|
|
|
|
|
float seconds;
|
|
|
|
@ -737,7 +737,11 @@ void HudElements::battery(){
|
|
|
|
|
minutes *= 60;
|
|
|
|
|
seconds = std::modf(minutes, &minutes);
|
|
|
|
|
seconds *= 60;
|
|
|
|
|
right_aligned_text(HUDElements.colors.text, HUDElements.ralign_width, "%02.0f:%02.0f:%02.0f", hours, minutes, seconds);
|
|
|
|
|
ImGui::PushFont(HUDElements.sw_stats->font1);
|
|
|
|
|
ImGui::TextColored(HUDElements.colors.text, "%s", "Remaining Time");
|
|
|
|
|
ImGui::PopFont();
|
|
|
|
|
ImGui::TableNextColumn();
|
|
|
|
|
ImGui::TextColored(HUDElements.colors.text, "%02.0f:%02.0f:%02.0f", hours, minutes, seconds);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|