Author Topic: Problem with popup lists - images give a precise example  (Read 5280 times)

Gregzo

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 64
    • View Profile
Problem with popup lists - images give a precise example
« on: August 26, 2012, 03:12:49 AM »



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
« Last Edit: August 26, 2012, 03:25:55 AM by Gregzo »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem with popup lists - images give a precise example
« Reply #1 on: August 26, 2012, 05:44:26 AM »
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).

Gregzo

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 64
    • View Profile
Re: Problem with popup lists - images give a precise example
« Reply #2 on: August 26, 2012, 07:19:58 AM »
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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem with popup lists - images give a precise example
« Reply #3 on: August 26, 2012, 05:10:50 PM »
I don't think it'll be in the next update, but in the future. I'm completely swamped here until mid-october.