17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-02 23:16:22 +01:00

Merge remote-tracking branch 'origin/feat/switch-blades' into feat/renderers-cleanup

This commit is contained in:
2026-10-29 23:55:04 +01:00
145 changed files with 36946 additions and 3791 deletions

View File

@@ -1830,6 +1830,11 @@ void layers_panel::render()
ImGui::SetNextWindowPos(ImVec2S(520, 60), ImGuiCond_FirstUseEver);
ImGui::SetNextWindowSize(ImVec2S(440, 340), ImGuiCond_FirstUseEver);
auto const panelname{(title.empty() ? std::string{STR_C(m_name.c_str())} : title) + "###" + m_name};
if (focus)
{
ImGui::SetNextWindowFocus();
focus = false;
}
if (ImGui::Begin(panelname.c_str(), &is_open, ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoCollapse))
{
if (scene::Layers.empty())
@@ -2019,6 +2024,14 @@ void layers_panel::render_list()
}
ImGui::PopID();
}
// under the layers of the scenery what lies under it
if (base_layers)
{
ImGui::Spacing();
ImGui::Separator();
ImGui::TextDisabled("%s", STR_C("Base layers, under the scenery"));
base_layers();
}
ImGui::EndChild();
}