make trackswitch window semitransparent

This commit is contained in:
milek7
2020-10-20 18:56:55 +02:00
parent 374479e93c
commit df87b37b5b
3 changed files with 10 additions and 1 deletions

View File

@@ -524,6 +524,14 @@ void ui::launcher_window::render_content()
ui::track_switch_window::track_switch_window(ui_panel &panel, std::shared_ptr<map::track_switch> &&sw) : popup(panel), m_switch(sw) {}
bool ui::track_switch_window::render()
{
ImGui::PushStyleVar(ImGuiStyleVar_Alpha, 0.5f);
bool ret = popup::render();
ImGui::PopStyleVar();
return ret;
}
void ui::track_switch_window::render_content()
{
auto &highlight = dynamic_cast<map_panel&>(m_parent).highlighted_switches;