Author Topic: Assign/change UIButton notification in code?  (Read 3546 times)

sendatsu_yoshimitsu

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Assign/change UIButton notification in code?
« on: July 16, 2014, 09:54:14 AM »
I'm working on an MMO-style action bar in which players can reassign skill mappings by dragging & dropping buttons from a skill menu to their main action bar. Where I'm stumbling is figuring out how to change which object and function is notified by OnClick(): is this something accomplished with EventDelegate?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Assign/change UIButton notification in code?
« Reply #1 on: July 17, 2014, 02:28:13 AM »
You mean EventDelegate.Set(button.onClick, YourFunction)?

sendatsu_yoshimitsu

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: Assign/change UIButton notification in code?
« Reply #2 on: July 17, 2014, 03:52:05 AM »
Oh dur, I feel slow for not working that out on my own- thank you! :)