Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Rafe

Pages: 1 [2]
16
NGUI 3 Support / eventReceiver For All Controls?
« on: July 18, 2012, 12:40:24 AM »
Note: This message is awaiting approval by a moderator.
Hi,

I've been using nGUI for about a day. I am very impressed by how fast I can take my GUI from another sprite system and recreate it. More importantly, I feel like I have a lot of control. The tools are great!

I am missing delegates, but messages are fine for UI-level performance, so no issue there. However, in my first script, I found the slider had eventReceiver, which allows for delegate-like ease-of-use. It looks like if I want something similar for a button, I need to add a ButtonMessage component for each message. Is that right?

What I would love to have is eventReceiver for everything.

In my script that handles the logic for a panel of buttons, I can set it in Awake making it very fast and easy to control in my script without having to worry about the inspector set up at this level.

Would this break a paradigm? It should be quite easy to implement. Thoughts?

Pages: 1 [2]