17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 03:59:19 +02:00

refactor(editor): named overlay colours

This commit is contained in:
maj00r
2026-10-04 00:43:41 +02:00
parent 20fa5613a7
commit 0879f1528e
4 changed files with 44 additions and 35 deletions

View File

@@ -1358,7 +1358,7 @@ void editor_mode::draw_infra_overlay() const
drawlist->AddCircleFilled(screen, Size, Colour);
};
for (auto const &binding : m_bindings)
draw(binding, binding.lost ? IM_COL32(255, 60, 60, 255) : IM_COL32(90, 230, 110, 220), 3.5f);
draw(binding, binding.lost ? overlay_color::invalid : IM_COL32(90, 230, 110, 220), 3.5f);
for (int i = 0; i < static_cast<int>(state.candidates.size()); ++i)
{
auto const &candidate{state.candidates[i]};