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
@@ -62,6 +62,7 @@ PD_API void ColorEdit::Draw() {
l->PathRect(thiz->GetPos(), thiz->GetPos() + thiz->GetSize(),
io->FrameRounding);
l->PathFill(io->Theme.Get(UI7Color_FrameBackground));
l->SetLayer(0);
});
layout->AddObjectEx(r, UI7LytAdd_Front | UI7LytAdd_NoCursorUpdate |
UI7LytAdd_NoScrollHandle);
@@ -87,7 +88,9 @@ PD_API void ColorEdit::Draw() {
layout->Slider<u8>("B", ((u8*)color_ref) + 2);
layout->Slider<u8>("A", ((u8*)color_ref) + 3);
layout->Update();
list->SetLayer(50);
list->Merge(layout->GetDrawList());
list->SetLayer(0);
// io->RegisterDrawList(GetID(), layout->GetDrawList());
}
}