17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-06 23:13:00 +01:00

feat(editor): fields of work in a row of their own over the toolbar (surroundings, tracks, roads, terrain), twice as high, with bigger bold text, and the tools of the one chosen in the toolbar under it: the edit modes of the node bank, the track tools in groups with the vehicle and the structure gauge, the road tools with what the place tool puts, the terrain tools (sculpt, smooth, chunks, orthophoto); the tool options window keeps the settings of the tool; the node bank shows a big preview of the entry pointed at for a moment, with its model and skin; the green colours by default again; Polish translation

This commit is contained in:
2026-10-09 00:42:17 +02:00
parent f184ce7a6a
commit 791d5d052c
15 changed files with 407 additions and 143 deletions

View File

@@ -69,6 +69,11 @@ class editor_ui : public ui_layer
{
m_toolbaroptions = 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)
{
m_workspacebar = std::move(Renderer);
}
// draws the gizmo settings in the toolset window (the gizmo state lives in the editor mode)
void set_gizmo_options(std::function<void()> Renderer)
{
@@ -182,6 +187,7 @@ class editor_ui : public ui_layer
std::function<void()> m_filloptions;
std::function<void()> m_menuoptions;
std::function<void()> m_toolbaroptions;
std::function<void()> m_workspacebar;
bool m_layoutreset{false}; // the default layout is to be built again on the next frame
bool m_tooloptionsopen{true};
bool m_inspectoropen{true};