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.


Messages - mickyg

Pages: [1]
1
Hi All

With the recent demise of DFGUI, I have thrown my hat into the NGUI ring and am finding the process pretty painless (and indeed, NGUI seems to have a lot more powerful features that I struggled with in DFGUI).

One thing I'm not sure about, is when it is appropriate to use a Panel, and when I should just be using a Widget.

In DFGUI, they only have panels, however they do not split draw calls so I guess in a sense they function more like an NGUI Widget - just an empty container that is used for UI organisation and grouping.

My UI is composed of a number of discrete parts - a nested dropdown menu at the top, thumbstick controls at the bottom corners, and an inventory style section at the middle bottom. I initially set it up to have each of these different elements nested under a separate Panel, but I'm not sure if that's the best solution.

Is there some sort of design guideline documentation that anyone has come across that tries to explain how to best create a UI that fits n with NGUI's design philosophies? It's quite a bit more complicated than DFGUI so I don't want to go down the wrong path right from the start due to a simple misunderstanding of how NGUI works.

Thanks!

2
NGUI 3 Support / Re: Popup List tutorial
« on: April 15, 2013, 05:27:16 PM »
Yes, I am describing a Popup Menu.

Yes, I created a Popup Menu via the widget tool.

In my second post, I referred to a Popup Menu 4 times.

When a Popup Menu is created via the widget, it applies the UIPopupList.cs. As far as I can see, the only difference between the two is the fact that in a Popup List, the label object is fed back into the Text Label parameter.

Therefore, my problem is relevant regardless of whether it's a Popup Menu or a Popup List. To reiterate:

How can I capture a change via OnSelectionChange, if the user selects the same Option from the dropdown list that is highlighted in the Selection dropdown?

In that case, there is no selection change, and therefore no event is fired.

I know you must get a lot of questions every day, but it seems that you simply haven't read my second post. I described the issue succinctly and you made no effort to address or acknowledge it - instead you told me that I was using the wrong widget which was incorrect if you read my post, and irrelevant besides.

I hope I'm not coming across as aggressive or rude because that's not my intention - I just want to resolve this issue.

3
NGUI 3 Support / Re: Popup List tutorial
« on: April 14, 2013, 06:05:29 PM »
I'm referring specifically to scripting. There seems to be a lack of examples in the documentation for basic tasks. For instance:

How do I call a specific event when an item in a Popup Menu is clicked on.

I thought I could use the OnSelectionChange function. But what happens when the user selects the item that is specified in the 'Selection' dropdown in the inspector? Then there is technically no selection change, and therefore nothing is called.

It makes sense for a Popup Menu to have no selection set at the start, does it not?


Put simply, I have a popup menu called 'file', with two options under it - 'Load' and 'Close':

File
____

Load
Close

And I want to call two different events when Load and Close are clicked on.

This seems to me to be the exact reason why a Popup Menu would be needed, and yet there is no documentation on how to make this work. After searching the forum, there are at least 3 other threads asking this very question with no resolving answer for any of them.

Thanks

4
NGUI 3 Support / Popup List tutorial
« on: April 12, 2013, 12:32:08 AM »
I noticed that it is not available (greyed out). Will this be available again soon?

I am very new to scripting, all I want is to know how to capture the current popup menu item as a variable, when you click on it.

Or at least get the string so I can then do something with it. This seems to be catered for with the OnSelectionChange and UIPopupList.selection, however I have no idea where to put this or how to call it up.

Thanks

Pages: [1]