mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 16:49:21 +02:00
feat(editor): the top view zooms out to 50 km for a whole line, from 0.5 m per pixel the rail tracks are drawn as thin lines and the hover reaches 16 px around them, only the tracks near the cursor are checked; handles drag beyond 200 m from the camera in Tracks; Plan works with the mouse alone and without the gizmo: the grips of a straight, the vertices and the radius of a curve drag directly, the break tool is press on the straight and drag, the panel tool stays chosen afterwards, the Q/W/E bar is hidden in Plan; self-test command ortho
This commit is contained in:
@@ -149,6 +149,18 @@ editor_mode::selftest_result editor_mode::selftest_scene(std::string const &comm
|
||||
save();
|
||||
return selftest_result::handled;
|
||||
}
|
||||
if (command == "ortho")
|
||||
{
|
||||
float extent{0.0f};
|
||||
words >> extent;
|
||||
choose_work_area(work_area::tracks);
|
||||
if (false == Global.EditorOrtho)
|
||||
toggle_ortho();
|
||||
if (extent > 0.0f)
|
||||
Global.EditorOrthoExtent = std::clamp(extent, 5.0f, 50000.0f);
|
||||
WriteLog(format("SELFTEST ortho extent %.0f", Global.EditorOrthoExtent));
|
||||
return selftest_result::handled;
|
||||
}
|
||||
if (command == "mapstate")
|
||||
{
|
||||
auto const marked{scene::Layers.empty() ? std::vector<std::string>{} : scene::Layers.marked(scene::layer_handle{1}, "//$o")};
|
||||
|
||||
Reference in New Issue
Block a user