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

feat(editor): edit tracks loaded from the scenery

This commit is contained in:
maj00r
2026-10-01 23:00:16 +02:00
parent e46fe6d06c
commit b93c5dde60
11 changed files with 1507 additions and 6 deletions

View File

@@ -50,6 +50,11 @@ class editor_ui : public ui_layer
{
m_filloptions = std::move(Renderer);
}
// draws the path editing settings in its node bank tab (the editing state lives in the editor mode)
void set_track_options(std::function<void()> Renderer)
{
m_trackoptions = 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)
{
@@ -77,6 +82,7 @@ class editor_ui : public ui_layer
bool m_insertrandom{false}; // insert mode picks a random template from m_insertset
model_set_ref m_insertset;
std::function<void()> m_filloptions;
std::function<void()> m_trackoptions;
std::function<void()> m_gizmooptions;
scene::basic_node *m_node{nullptr}; // currently bound scene node, if any
};