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

feat(editor): what the editor refuses shows by the mouse cursor

An error put in the status bar also shows for 4 s by the cursor, and the
refusals the tools kept in their panels (a curve which can't be laid,
a switch which doesn't fit, a signal which can't be moved, a drive
without the variant) go there as well.
This commit is contained in:
maj00r
2026-10-21 11:47:26 +02:00
parent 9d27fd1ace
commit da18883558
9 changed files with 70 additions and 27 deletions

View File

@@ -165,6 +165,7 @@ class editor_ui : public ui_layer
private:
// methods
void render_refusal();
void render_mode_options(nodebank_panel::edit_mode const Mode);
// windows of the editor drawn by the user interface itself
void render_tool_options();
@@ -208,6 +209,8 @@ class editor_ui : public ui_layer
std::function<void()> m_workspacebar;
std::function<void()> m_editmenu;
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};
bool m_tooloptionsopen{true};
bool m_inspectoropen{true};
bool m_sceneopen{true};