mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-02 08:09:14 +01:00
feat(editor): presets of the track properties, applied on the selected tracks
This commit is contained in:
@@ -76,6 +76,11 @@ class editor_ui : public ui_layer
|
||||
{
|
||||
m_editmenu = std::move(Renderer);
|
||||
}
|
||||
// draws the items of the editor mode in the tools menu, after the common ones
|
||||
void set_tools_menu(std::function<void()> Renderer)
|
||||
{
|
||||
m_toolsmenu = 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)
|
||||
{
|
||||
@@ -170,6 +175,7 @@ class editor_ui : public ui_layer
|
||||
void scene_row(std::size_t const Entry);
|
||||
void render_menu_contents() override;
|
||||
void render_windows_menu() override;
|
||||
void render_tools_menu() override;
|
||||
int palette() const override;
|
||||
void render_dockspace() override;
|
||||
void render_() override;
|
||||
@@ -203,6 +209,7 @@ class editor_ui : public ui_layer
|
||||
std::function<void()> m_toolbaroptions;
|
||||
std::function<void()> m_workspacebar;
|
||||
std::function<void()> m_editmenu;
|
||||
std::function<void()> m_toolsmenu;
|
||||
bool m_layoutreset{false}; // the default layout is to be built again on the next frame
|
||||
bool m_tooloptionsopen{true};
|
||||
bool m_inspectoropen{true};
|
||||
|
||||
Reference in New Issue
Block a user