Author Topic: Scrollable Panel 'Snap'  (Read 2613 times)

STARBVCK

  • Guest
Scrollable Panel 'Snap'
« on: July 19, 2012, 03:31:06 AM »
Hey, all,

I'm relatively new to NGUI, and I have used search, but have been unable to find an answer to my question.

I'm looking to create a scrollable control panel, which basically consists of 3 banks of buttons.

What I'd like to do is to have each of these panels on-screen, contained in a window, and have the user 'swipe' between them.

I can make the panel movable, but I have no idea how to get the panel to snap to the button bank which takes up the majority of the window. In other words, I don't want half of one button bank, and half of another.

Can anyone give me some pointers on how to achieve what I'm after?

Thanks!

SB

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scrollable Panel 'Snap'
« Reply #1 on: July 19, 2012, 11:08:23 AM »
I'm not sure what you did to search the forums, but click on the "Search" button on the top-left (next to the Help button), and search for "snap panel".

STARBVCK

  • Guest
Re: Scrollable Panel 'Snap'
« Reply #2 on: July 20, 2012, 04:24:48 AM »
ArenMook,

As I suggested, I did search, and I've also just tried the search you suggested. What actually appears when I try that is my question and your reply, so precisely no further forward. :)

Is there any other information on how to do this?

Thanks,

SB

PhilipC

  • Guest
Re: Scrollable Panel 'Snap'
« Reply #3 on: July 20, 2012, 09:45:03 AM »
You have to search from the main forum page a couple results i got were

http://www.tasharen.com/forum/index.php?topic=97.msg465#msg465
http://www.tasharen.com/forum/index.php?topic=500.msg3266#msg3266

The second of which i think will be more helpful.