mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Worlds indexing
This commit is contained in:
parent
eea920d98f
commit
f513c094a9
19 changed files with 383 additions and 141 deletions
|
|
@ -27,6 +27,7 @@ GUI::GUI() {
|
|||
|
||||
menu = new PagesControl();
|
||||
container->add(menu);
|
||||
container->scrollable(false);
|
||||
}
|
||||
|
||||
GUI::~GUI() {
|
||||
|
|
@ -160,4 +161,14 @@ shared_ptr<UINode> GUI::get(string name) {
|
|||
|
||||
void GUI::remove(string name) {
|
||||
storage.erase(name);
|
||||
}
|
||||
}
|
||||
|
||||
void GUI::setFocus(shared_ptr<UINode> node) {
|
||||
if (focus) {
|
||||
focus->defocus();
|
||||
}
|
||||
focus = node;
|
||||
if (focus) {
|
||||
focus->focus(this);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue