Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Gregzo on August 26, 2012, 03:12:49 AM
-
(http://dl.dropbox.com/u/12168914/Capture%20d%E2%80%99%C3%A9cran%202012-08-26%20%C3%A0%2010.06.46.png)
(http://dl.dropbox.com/u/12168914/Capture%20d%E2%80%99%C3%A9cran%202012-08-26%20%C3%A0%2010.06.59.png)
Hi!
So, I'm customizing popupLists (menu in this case, as the label isn't updated).
The original label is "Options". The bottom image shows a popped list above, and is what I'm aiming for. The top image shows the same, but with a downwards popping list: not quite right... My background sprite is exactly the mirror image of the working one.
It just seems the instantiated drop-down list is not positioned at the same distance in the above and below cases.
Also, even if my label's pivot is Center, the labels in the instantiated Drop-Down list all have left for pivot.
It would be great to be able to control : a> y distance of drop down list to object - b> pivot of drop-down list's labels
Cheers,
Gregzo
-
Odd, could have sworn I added a way to specify the pivot point of the labels inside the drop-down list, but it seems not. The pivot is set on line 496 of UIPopupList, but looking at the code it will behave oddly unless the local position is offset by an appropriate amount as well (on line 500).
-
Hi Aren,
Thanks. I haven't updated since mid june, so it wasn't wher you mentioned, but I was able to add a yOffset property quite easily thanks to your scripts clarity.
Will you add that as well as a pivot public var in the next update?
Cheers,
Gregzo
-
I don't think it'll be in the next update, but in the future. I'm completely swamped here until mid-october.