17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-04 05:35:43 +01: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

@@ -69,6 +69,11 @@ class editor_ui : public ui_layer
{
m_toolbaroptions = std::move(Renderer);
}
// draws the edit menu of the editor mode, next to the file menu
void set_edit_menu(std::function<void()> Renderer)
{
m_editmenu = std::move(Renderer);
}
// draws the fields of work of the editor mode in a row above the toolbar
void set_workspace_bar(std::function<void()> Renderer)
{
@@ -188,6 +193,7 @@ class editor_ui : public ui_layer
std::function<void()> m_menuoptions;
std::function<void()> m_toolbaroptions;
std::function<void()> m_workspacebar;
std::function<void()> m_editmenu;
bool m_layoutreset{false}; // the default layout is to be built again on the next frame
bool m_tooloptionsopen{true};
bool m_inspectoropen{true};