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

feat(editor): colours of the editor: amber accents on grey panels as in the design of the layout, the rest of the simulator stays green (colours of the ui chosen by the ui of the mode drawn; Editor Settings > General, kept in eu07_editor.ini), docking preview in the accent colour in both; keys 1-5 choose the edit modes in the order of the toolbar, shown in its tooltips; Mode windows merged into Windows: the windows of the editor, model sets among them, window layout reset and unpinning of the docks; Polish translation

This commit is contained in:
2026-10-09 00:15:14 +02:00
parent 9b0e88db7a
commit f184ce7a6a
9 changed files with 116 additions and 37 deletions

View File

@@ -78,6 +78,8 @@ public:
// methods
static bool init( GLFWwindow *Window );
static void imgui_style();
// colours of the user interface: 0 the green ones shared with the starter, 1 the amber ones of the editor
static void imgui_colors(int const Palette);
// assign texturing hardware unit
static void set_unit( GLint const Textureunit ) { m_textureunit = GL_TEXTURE0 + Textureunit; }
@@ -137,6 +139,14 @@ protected:
static bool m_cursorvisible;
virtual void render_menu_contents();
// items of the windows menu which belong to the ui of a mode, after the common ones
virtual void render_windows_menu() {}
// colours this ui is drawn in, see imgui_colors()
virtual int palette() const
{
return 0;
}
static int m_palette; // colours set at the moment
ui_log_panel m_logpanel { "Log", true };
bool m_suppress_menu = false; // if `true`, the menu at the top of the window will not be present
bool m_menu_always = false; // if `true`, the menu is shown all the time, not only when the mouse is at the top of the window