17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-05 01:55:43 +01:00

feat(editor): presets of the track properties, applied on the selected tracks

(cherry picked from commit 83c8c23c80)
This commit is contained in:
2026-10-21 16:09:05 +02:00
committed by maj00r
parent 7e284b293d
commit a83d5c6978
11 changed files with 689 additions and 23 deletions

View File

@@ -80,6 +80,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)
{
@@ -177,6 +182,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;
@@ -210,6 +216,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
std::string m_refusal;
double m_refusaltime{-100.0};