17
0
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:
maj00r
2026-10-05 01:21:11 +02:00
parent 220fd0f37e
commit 3731520e33
13 changed files with 2769 additions and 924 deletions

View File

@@ -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();
}