mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
Refactor, GUI::storage (map for direct access to panels)
This commit is contained in:
parent
4e1f19c911
commit
6392f63604
10 changed files with 75 additions and 54 deletions
|
|
@ -75,6 +75,10 @@ void Container::add(shared_ptr<UINode> node) {
|
|||
refresh();
|
||||
}
|
||||
|
||||
void Container::add(UINode* node) {
|
||||
add(shared_ptr<UINode>(node));
|
||||
}
|
||||
|
||||
void Container::remove(shared_ptr<UINode> selected) {
|
||||
selected->setParent(nullptr);
|
||||
nodes.erase(std::remove_if(nodes.begin(), nodes.end(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue