mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
new content menu (WIP)
This commit is contained in:
parent
690e3f54c9
commit
5915b811f2
27 changed files with 340 additions and 202 deletions
|
|
@ -198,7 +198,18 @@ int UINode::getZIndex() const {
|
|||
return zindex;
|
||||
}
|
||||
|
||||
void UINode::lock() {
|
||||
void UINode::moveInto(
|
||||
std::shared_ptr<UINode> node,
|
||||
std::shared_ptr<Container> dest
|
||||
) {
|
||||
auto parent = node->getParent();
|
||||
if (auto container = dynamic_cast<Container*>(parent)) {
|
||||
container->remove(node);
|
||||
}
|
||||
if (parent) {
|
||||
parent->scrolled(0);
|
||||
}
|
||||
dest->add(node);
|
||||
}
|
||||
|
||||
vec2supplier UINode::getPositionFunc() const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue