76
Modification Help / Re: Using GuiMouseEventCtrl (See my last post for results)
« on: August 28, 2015, 12:51:03 AM »Hm, currently just doing 50ms schedules per loop and packaging GuiMouseEventCtrl::onWake so it replays the loop; the loop will end when the mouse control isn't awake. This only works for onMouseEnter and onMouseLeave.
Every single one of them is broken, not sure why.
Nevermind, got it working now. I tried this in general.Code: [Select]function GuiMouseEventCtrl::onMouseLeave(%this,%modifier,%mousePoint,%mouseClickCount)
{
echo("Working");
}
You should not use the general class GuiMouseEventCtrl, just create your mouse control with a name and use yourname::onMouseEtc(). Remember that creating a mouse control and then naming it after you have created it will not work due to a bug.