Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: salepate on October 24, 2014, 08:31:12 AM

Title: Get Release event without getting the down one.
Post by: salepate on October 24, 2014, 08:31:12 AM
Hello,

Back again, on the OnRelease/OnPress(false) event which never gets fired if the button has not received OnPress(true).

This thread (http://www.tasharen.com/forum/index.php?topic=864.0) has similarities with my question.

How do you handle contextual menu if the above assertion is true? Moreover, since there's no hovering on devices, this get harder to code. Do I have to not use NGUI events for making such menu? Its easy on a standalone version thanks to the UICamera.hoveredObject (although, the button doesnt get highlighted when my mouse is "down-hovering" it)

So let me ask, If I ever want to make a contextual menu that appears on mouse/touch down, and disappears on mouse up/touch up (and trigger an event if mouse/touch was released above a UIButton), Should I just not use NGUI at all?

Regards
Title: Re: Get Release event without getting the down one.
Post by: ArenMook on October 25, 2014, 02:28:14 PM
I did that with Windward, actually. I had to make a minor change that was a part of 3.7.5. Did you update?