mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
new content menu (WIP)
This commit is contained in:
parent
690e3f54c9
commit
5915b811f2
27 changed files with 340 additions and 202 deletions
|
|
@ -52,6 +52,10 @@ void Panel::add(std::shared_ptr<UINode> node) {
|
|||
|
||||
void Panel::refresh() {
|
||||
UINode::refresh();
|
||||
std::stable_sort(nodes.begin(), nodes.end(), [](auto a, auto b) {
|
||||
return a->getZIndex() < b->getZIndex();
|
||||
});
|
||||
|
||||
float x = padding.x;
|
||||
float y = padding.y;
|
||||
glm::vec2 size = getSize();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue