17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 07:29:20 +02:00

feat(editor): more models selected at once (Shift+LMB), moved and turned by the gizmo together, undone in one step; Ctrl+C / Ctrl+V copy the selected models with their groups and paste them at the cursor; Ctrl+G groups the selection, Ctrl+Shift+G takes a group apart, groups written to the scenery as group ... endgroup and loaded as groups of their own; End drops each model of the selection and of their groups onto the ground; menu of the selection at the cursor on Ctrl+RMB; Edit menu with undo, redo, the clipboard, grouping, deleting; Help > Keyboard shortcuts (F1) with the keys of every field of work, F2-F5 choose the fields of work, the tracks menu lists the track tools with their keys, the keys and descriptions in the menus and tooltips; self-test commands for the selection; Polish translation

This commit is contained in:
2026-10-09 01:12:46 +02:00
parent 791d5d052c
commit f94100ffe7
14 changed files with 1354 additions and 78 deletions

View File

@@ -582,15 +582,31 @@ std::array<editor_mode::track_mode, 12> const &editor_mode::track_modes()
void editor_mode::render_track_menu()
{
if (ImGui::MenuItem(STR_C("Tracks"), nullptr, m_track_window_open))
// the tools of the tracks with their keys, as in the toolbar of the field of work
if (false == ImGui::BeginMenu(STR_C("Tracks")))
return;
for (auto const &mode : track_modes())
{
if (m_track_window_open)
m_track_window_open = false;
else
show_track_tab(m_track_tab);
if (ImGui::MenuItem(STR_C(mode.label), mode.key, m_track_window_open && m_track_tab == mode.tab))
{
terrain_workspace(false);
show_track_tab(mode.tab);
}
if (ImGui::IsItemHovered())
ImGui::SetTooltip("%s", STR_C(mode.tooltip));
}
ImGui::Separator();
if (ImGui::MenuItem(STR_C("Find a track by its name"), "Ctrl+F"))
{
terrain_workspace(false);
show_track_tab(m_track_window_open ? m_track_tab : track_tab::path);
m_track_search.focus = true;
}
if (ImGui::MenuItem(STR_C("Structure gauge"), nullptr, m_gauge.open))
m_gauge.open = !m_gauge.open;
if (ImGui::IsItemHovered())
ImGui::SetTooltip("%s", STR_C("Track editor: the window with its modes opens or closes"));
ImGui::SetTooltip("%s", STR_C("Checks which models enter the structure gauge of the tracks and the clearance over the roads (skrajnia budowli)"));
ImGui::EndMenu();
}
void editor_mode::show_track_tab(track_tab const Tab)