16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 12:19:18 +02:00

Add conversion from scenario_time to std::string.

This commit is contained in:
Kamil Lewan
2018-07-22 16:46:54 +02:00
parent 9c5e80ceeb
commit ed359d3b4e
3 changed files with 11 additions and 5 deletions

View File

@@ -279,12 +279,8 @@ ui_layer::update() {
case( GLFW_KEY_F1 ) : {
// f1, default mode: current time and timetable excerpt
auto const &time = simulation::Time.data();
uitextline1 =
"Time: "
+ to_string( time.wHour ) + ":"
+ ( time.wMinute < 10 ? "0" : "" ) + to_string( time.wMinute ) + ":"
+ ( time.wSecond < 10 ? "0" : "" ) + to_string( time.wSecond );
"Time: " + std::string( simulation::Time );
if( Global.iPause ) {
uitextline1 += " (paused)";
}