Author Topic: UIButtonMessage vs UIButtonMessage  (Read 4705 times)

yuewah

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 180
    • View Profile
UIButtonMessage vs UIButtonMessage
« on: July 31, 2012, 12:17:17 AM »
UIButtonTween: OnClick, OnHover, OnPress, OnActivate, OnDoubleClick, OnSelect
UIButtonMessage: OnClick, OnMouseOver, OnMouseOut, OnPress, OnRelease, OnDoubleClick

they are not equal, can you make them the same or add OnActivate, OnSelect to UIButtonMessage

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIButtonMessage vs UIButtonMessage
« Reply #1 on: July 31, 2012, 12:47:53 AM »
UIButtonMessage needs "Over" and "Out" states because there is no other way to specify "true" or "false" conditions. OnHover and OnPress functions have a parameter, remember?

In any case, there is little reason to use UIButtonMessage if you're working with code. It's a script for designers, not coders. Coders should use UIEventDelegate instead as it's much faster.

Jason

  • Guest
Re: UIButtonMessage vs UIButtonMessage
« Reply #2 on: September 07, 2012, 10:58:35 AM »
Could you show us how to use UIEventDelegate?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIButtonMessage vs UIButtonMessage
« Reply #3 on: September 07, 2012, 11:43:03 AM »
By UIEventDelegate I meant UIEventListener.

UIEventListener.Get(eventReceivingObject).onClick += YourCustomClickListener;