17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-22 19:03:22 +02:00

feat(editor): friendlier track editing: the point labels of a path are translated, a selected switch says that the turnout tool sets its geometry and offers Edit the switch (T), the geometry of its paths starts collapsed, the gizmo options show only on the tabs that use the gizmo, cancelling a laying clears its status and the status of a laying counts pieces and metres

This commit is contained in:
maj00r
2026-10-15 17:00:11 +02:00
parent 1dc61eaf31
commit 6d0423b58a
3 changed files with 40 additions and 7 deletions

View File

@@ -4787,7 +4787,8 @@ void editor_mode::render_gizmo_options()
if (ImGui::IsItemHovered())
ImGui::SetTooltip("%s", STR_C("Wheel zooms. Hold the wheel and drag to pan."));
}
if (ui()->mode() == nodebank_panel::TRACK && track_plan_tab())
if (ui()->mode() == nodebank_panel::TRACK && m_track_tab != track_tab::path && m_track_tab != track_tab::turnout && m_track_tab != track_tab::turntable && m_track_tab != track_tab::signals &&
m_track_tab != track_tab::lineside)
return;
ImGui::Checkbox(STR_C("Enabled"), &m_gizmo_enabled);
if (!m_gizmo_enabled)