Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: sendatsu_yoshimitsu on July 16, 2014, 09:54:14 AM

Title: Assign/change UIButton notification in code?
Post by: sendatsu_yoshimitsu 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?
Title: Re: Assign/change UIButton notification in code?
Post by: ArenMook on July 17, 2014, 02:28:13 AM
You mean EventDelegate.Set(button.onClick, YourFunction)?
Title: Re: Assign/change UIButton notification in code?
Post by: sendatsu_yoshimitsu on July 17, 2014, 03:52:05 AM
Oh dur, I feel slow for not working that out on my own- thank you! :)