mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 07:29:20 +02:00
feat(editor): the parallel track is a tool of its own (N) in the toolbar, its green preview only shows there, Shift+click on a straight in L opens it with that track; the norms are two buttons at the top of the Lay panel and of the Curve tool, shared by both, free hides the recommendations of the curve and its norm warnings, the duplicate transitions checkbox is gone; the Lay panel starts with the radius, the speed and the shape; the Tracks toolbar shows the tools that lay track, the ones that correct a line are under More (remembered); First steps ends with driving the track laid; self-test command tracktab
This commit is contained in:
@@ -373,11 +373,9 @@ bool editor_mode::parallel_preview_visible() const
|
||||
{
|
||||
if (m_parallel.pieces.empty() || parallel_source() != m_parallel.built_for)
|
||||
return false;
|
||||
if (m_track_tab == track_tab::lay)
|
||||
return m_lay.points.empty();
|
||||
if (m_track_tab == track_tab::path)
|
||||
if (m_track_tab == track_tab::parallel)
|
||||
return true;
|
||||
return m_track_tab == track_tab::lineside && m_parallel.open;
|
||||
return m_track_tab == track_tab::path && parallel_target() != nullptr;
|
||||
}
|
||||
|
||||
void editor_mode::draw_parallel_preview() const
|
||||
|
||||
Reference in New Issue
Block a user