mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-01 17:15:37 +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:
@@ -100,6 +100,8 @@ bool editorSettings::load()
|
||||
m_nodebank_previews = (value == "1");
|
||||
else if (key == "nodebank_card")
|
||||
parse(value, m_nodebank_card);
|
||||
else if (key == "palette")
|
||||
parse(value, m_palette);
|
||||
else if (key.rfind(origin_prefix, 0) == 0)
|
||||
{
|
||||
// northing;easting
|
||||
@@ -142,6 +144,7 @@ bool editorSettings::save()
|
||||
stream << "signal_offset " << m_signal_offset << "\n";
|
||||
stream << "nodebank_previews " << (m_nodebank_previews ? 1 : 0) << "\n";
|
||||
stream << "nodebank_card " << m_nodebank_card << "\n";
|
||||
stream << "palette " << m_palette << "\n";
|
||||
stream << std::fixed << std::setprecision(3);
|
||||
for (auto const &origin : m_orthophoto_origins)
|
||||
stream << origin.first << " " << origin.second.first << ";" << origin.second.second << "\n";
|
||||
|
||||
@@ -50,6 +50,10 @@ public:
|
||||
int nodebank_card() const { return m_nodebank_card; }
|
||||
void nodebank_card(int Size) { m_nodebank_card = Size; }
|
||||
|
||||
// colours of the editor: 1 amber, its own; 0 green, as the rest of the simulator
|
||||
int palette() const { return m_palette; }
|
||||
void palette(int Palette) { m_palette = Palette; }
|
||||
|
||||
private:
|
||||
movement_scheme m_movement{movement_scheme::wsad};
|
||||
orthophoto_settings m_orthophoto;
|
||||
@@ -58,6 +62,7 @@ private:
|
||||
double m_signal_offset{2.25};
|
||||
bool m_nodebank_previews{true};
|
||||
int m_nodebank_card{96};
|
||||
int m_palette{1};
|
||||
};
|
||||
|
||||
// global editor settings instance
|
||||
|
||||
Reference in New Issue
Block a user