reset layers and give menus a base layer to gather perfect ordered rendering

This commit is contained in:
2026-09-06 15:10:37 +02:00
parent 1ae4d0cd46
commit 7e0f3a6bf6
3 changed files with 9 additions and 0 deletions
+3
View File
@@ -224,6 +224,7 @@ PD_API void Menu::DrawBaseLayout() {
l->PathAdd(self->FinalPos() + self->GetSize());
l->PathAdd(self->FinalPos() + self->GetSize() - fvec2(20, 0));
l->PathFill(io->Theme.Get(UI7Color_Button));
l->SetLayer(0);
});
r->SetSize(
fvec2(pLayout.GetSize().x, pLayout.GetSize().y - TitleBarHeight));
@@ -268,6 +269,7 @@ PD_API void Menu::DrawBaseLayout() {
(io->FramePadding.x * 2)),
2),
pID.GetName().c_str(), io->Theme.Get(UI7Color_Text));
l->SetLayer(0);
});
r->SetSize(fvec2(pLayout.GetSize().x, TitleBarHeight));
r->SetPos(0);
@@ -290,6 +292,7 @@ PD_API void Menu::DrawBaseLayout() {
self->FinalPos() +
fvec2(pIsOpen ? self->GetSize().x * 0.5 : 0, self->GetSize().y),
io->Theme.Get(UI7Color_FrameBackground));
l->SetLayer(0);
});
r->SetSize(TitleBarHeight - pIO.FramePadding.y * 2);
r->SetPos(pIO.FramePadding);