mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 03:59:19 +02:00
feat(tracks): track editor in one movable Tracks window with exclusive modes, a guide of what can be done in the current step and the rarely used fields folded; vertical profile window with the ground of the scenery triangles; plain pieces added at a free end, freehand only on request; curve mode edits the single curve clicked
This commit is contained in:
@@ -220,7 +220,8 @@ void editor_mode::render_road_menu()
|
||||
{
|
||||
if (ImGui::BeginMenu("Roads"))
|
||||
{
|
||||
ImGui::MenuItem("Road editor", nullptr, &m_roadtool.window);
|
||||
if (ImGui::MenuItem("Road editor", nullptr, &m_roadtool.window) && m_roadtool.window)
|
||||
m_track_window_open = false;
|
||||
ImGui::MenuItem("Show lanes", nullptr, &m_roadtool.lanes);
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user