mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
add 'onmouseenter', 'onmouseleave' ui events
This commit is contained in:
parent
d457b2ee7f
commit
78e0ac5a95
5 changed files with 36 additions and 1 deletions
|
|
@ -52,6 +52,10 @@ void UINode::setHover(bool flag) {
|
|||
return;
|
||||
}
|
||||
hover = flag;
|
||||
actions.notify(flag ? UIAction::MOUSE_ENTER : UIAction::MOUSE_LEAVE, gui);
|
||||
}
|
||||
|
||||
void UINode::setMouseOver(bool flag) {
|
||||
actions.notify(flag ? UIAction::MOUSE_OVER : UIAction::MOUSE_OUT, gui);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue