mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
rename UINode::setHover to UINode::setMouseEnter
This commit is contained in:
parent
79e4a28b4d
commit
89be2a1837
3 changed files with 5 additions and 5 deletions
|
|
@ -133,10 +133,10 @@ void GUI::actMouse(float delta, const CursorState& cursor) {
|
|||
|
||||
auto hover = container->getAt(cursor.pos);
|
||||
if (this->hover && this->hover != hover) {
|
||||
this->hover->setHover(false);
|
||||
this->hover->setMouseEnter(false);
|
||||
}
|
||||
if (hover && hover != this->hover) {
|
||||
hover->setHover(true);
|
||||
hover->setMouseEnter(true);
|
||||
|
||||
int scroll = input.getScroll();
|
||||
if (scroll) {
|
||||
|
|
@ -241,7 +241,7 @@ void GUI::act(float delta, const glm::uvec2& vp) {
|
|||
actMouse(delta, cursor);
|
||||
} else {
|
||||
if (hover) {
|
||||
hover->setHover(false);
|
||||
hover->setMouseEnter(false);
|
||||
hover = nullptr;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue