Author Topic: Get Release event without getting the down one.  (Read 3301 times)

salepate

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 7
    • View Profile
Get Release event without getting the down one.
« 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 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Get Release event without getting the down one.
« Reply #1 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?
« Last Edit: October 25, 2014, 03:13:20 PM by ArenMook »