mirror of
https://github.com/edubart/otclient.git
synced 2025-10-22 15:25:54 +02:00
animated texture
This commit is contained in:
@@ -213,6 +213,13 @@ void UIContainer::onInputEvent(const InputEvent& event)
|
||||
}
|
||||
} else {
|
||||
shouldFire = true;
|
||||
|
||||
if(event.type == EV_MOUSE_MOVE) {
|
||||
if(child->getRect().contains(event.mousePos) && UIContainer::getRoot()->recursiveGetChildByPos(event.mousePos) == child)
|
||||
child->setMouseOver(true);
|
||||
else
|
||||
child->setMouseOver(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user