mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-05 01:55:43 +01:00
feat(editor): layers window, scenery save and include descriptions
This commit is contained in:
@@ -53,17 +53,24 @@ class editor_ui : public ui_layer
|
||||
{
|
||||
m_gizmooptions = std::move(Renderer);
|
||||
}
|
||||
// actions of the file menu, performed by the editor mode
|
||||
void set_file_actions(std::function<void()> Save, std::function<void()> Export);
|
||||
// shows outcome of an operation in the layers window
|
||||
void set_status(std::string const &Status, bool const Error = false);
|
||||
|
||||
private:
|
||||
// methods
|
||||
void render_mode_options(nodebank_panel::edit_mode const Mode);
|
||||
void render_header_sections();
|
||||
// list of scenery layers: visibility, selection lock and choice of the layer receiving new nodes
|
||||
void render_layers();
|
||||
void render_menu_contents() override;
|
||||
// members
|
||||
itemproperties_panel m_itempropertiespanel{"Node Properties", true}; // not a window of its own, drawn in the toolset window
|
||||
functions_panel m_functionspanel{"Functions", true}; // not a window of its own, its settings are drawn in the toolset tabs
|
||||
nodebank_panel m_nodebankpanel{"Toolset", true}; // main editor window: gizmo, node properties, edit modes and the node bank
|
||||
layers_panel m_layerspanel{"Layers", true};
|
||||
includes_panel m_includespanel{"Include descriptions", false};
|
||||
std::function<void()> m_save;
|
||||
std::function<void()> m_export;
|
||||
brush_object_list m_brushobjects;
|
||||
bool m_insertrandom{false}; // insert mode picks a random template from m_insertset
|
||||
model_set_ref m_insertset;
|
||||
|
||||
Reference in New Issue
Block a user