Author Topic: How to...make Ex12 Scroll View selectable?  (Read 3500 times)

sonicviz

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 58
    • View Profile
How to...make Ex12 Scroll View selectable?
« on: April 16, 2012, 08:29:21 AM »
Hi,
I'm playing around with scroll view as a possible solution to my "no scrolling popup list" problem and was wondering...

What would be the best way to make the example have individual selectable items?
Make the current image sprite an image button instead, and use UIGrid name or index as the unique identifier?
Use case would be to turn it into a level selector or item selector, think a playlist or something else, that then fires off some configuration and the game starts.

ty!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to...make Ex12 Scroll View selectable?
« Reply #1 on: April 16, 2012, 09:44:32 AM »
Individual selectable items... You could technically just use UICheckbox script on each child UI element with a collider. You could add some outline to act as the "checkSprite", or just leave it blank. Set the "radioButtonRoot" to be the container, and you will have yourself a list of individually selectable items -- that is, only one can be selected at a time. Radio button group, without actually looking like radio buttons.

sonicviz

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 58
    • View Profile
Re: How to...make Ex12 Scroll View selectable?
« Reply #2 on: April 16, 2012, 09:54:56 AM »
kk, ty