mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
more docs, minor refactor
This commit is contained in:
parent
f428a24a16
commit
13f7d3a5d3
6 changed files with 38 additions and 19 deletions
|
|
@ -58,7 +58,7 @@ void GUI::actMouse(float delta) {
|
|||
}
|
||||
if (focus != pressed) {
|
||||
focus = pressed;
|
||||
focus->focus(this);
|
||||
focus->onFocus(this);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
@ -175,7 +175,7 @@ void GUI::setFocus(std::shared_ptr<UINode> node) {
|
|||
}
|
||||
focus = node;
|
||||
if (focus) {
|
||||
focus->focus(this);
|
||||
focus->onFocus(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue