Author Topic: Creating Scrollable UIPopup List, used for "Select Country"  (Read 2175 times)

ChrisR

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 33
    • View Profile
Creating Scrollable UIPopup List, used for "Select Country"
« on: September 24, 2013, 05:24:17 AM »
Hey all,

I'm currently creating a scenario editor for our game. One of the problems I'm encountering is that there's some options that have many different values, such as a list of countries that the designers want to show in a pop-up list.  For this to work, I'd need the pop-up list to be scroll-able, otherwise the available options would overflow the current screen size.

I've brainstormed some possible solutions for doing it from art, but they are unwieldy and not very elegant. (Example: Creating a clipped Panel with a sorted UIGrid containing text labels that are clickable and update the value of a given label.)

So I'm left looking at either designing the UI around it, or looking at a code solution. While the former is possible, it's not the most user friendly option in some anticipated cases - such as country select. So my questions are: A) Has anyone found a way to make scrollable pop-up lists? and B) Aren, is this something you have considered adding in the near future?

Thanks in advance for any help!

ChrisR

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 33
    • View Profile
Re: Creating Scrollable UIPopup List, used for "Select Country"
« Reply #1 on: September 24, 2013, 08:25:25 AM »
Also, while I am working with this, I just noticed that the collider size is also determined by the generated label's dimensions. This might be something that you want the user to be able to set; as it should probably cover the entire width of the background sprite used when creating the pop-up list.


Edit: Width, not length.
« Last Edit: September 24, 2013, 09:32:57 AM by ChrisR »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Creating Scrollable UIPopup List, used for "Select Country"
« Reply #2 on: September 24, 2013, 01:52:32 PM »
There is an add-on package that supports this -- http://www.tasharen.com/forum/index.php?topic=5142.0