mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-31 22:49:05 +01:00
feat(editor): the design speed the norms lay for is shown by the cursor with the track it comes from, and can be the one set for the laying
Laid to the norms, the readout says the design speed of the transition curves and of the cant: that of the track the laying goes on from or joins, or the one set for the laying. A new option takes the set speed also on from a track with its own, the new tracks get it; Ctrl+Shift+wheel steps it while laying and turns the option on. The panel shows the speed the laying under way is designed for.
This commit is contained in:
@@ -130,6 +130,14 @@ editor_mode::selftest_result editor_mode::selftest_join(std::string const &comma
|
||||
WriteLog(std::string{"SELFTEST norms: "} + (m_norms_free ? "free" : "plk"));
|
||||
return selftest_result::handled;
|
||||
}
|
||||
if (command == "layspeed")
|
||||
{
|
||||
int own{0};
|
||||
words >> m_lay.style.velocity >> own;
|
||||
m_lay.own_speed = own != 0;
|
||||
WriteLog(format("SELFTEST layspeed: %.0f km/h, own %d", m_lay.style.velocity, m_lay.own_speed ? 1 : 0));
|
||||
return selftest_result::handled;
|
||||
}
|
||||
if (command == "tracktab")
|
||||
{
|
||||
std::string key;
|
||||
|
||||
Reference in New Issue
Block a user