mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 00:49:19 +02:00
scenario time widgets tweaks
This commit is contained in:
@@ -186,7 +186,8 @@ scenario_time::julian_day() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void scenario_time::set_time(int yearday, int minute) {
|
void scenario_time::set_time(int yearday, int minute) {
|
||||||
daymonth(m_time.wDay, m_time.wMonth, m_time.wYear, yearday);
|
m_yearday = yearday;
|
||||||
|
daymonth(m_time.wDay, m_time.wMonth, m_time.wYear, m_yearday);
|
||||||
m_time.wHour = minute / 60;
|
m_time.wHour = minute / 60;
|
||||||
m_time.wMinute = minute % 60;
|
m_time.wMinute = minute % 60;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,8 +21,6 @@ void ui::time_panel::render_contents()
|
|||||||
m_relay.post(user_command::setdatetime, (double)yearday, time, 1, 0);
|
m_relay.post(user_command::setdatetime, (double)yearday, time, 1, 0);
|
||||||
m_relay.post(user_command::setweather, fog, overcast, 1, 0);
|
m_relay.post(user_command::setweather, fog, overcast, 1, 0);
|
||||||
m_relay.post(user_command::settemperature, temperature, 0.0, 1, 0);
|
m_relay.post(user_command::settemperature, temperature, 0.0, 1, 0);
|
||||||
|
|
||||||
is_open = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user