Author Topic: Draggable panel moves by button and attach items  (Read 1922 times)

iwishash

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 15
    • View Profile
Draggable panel moves by button and attach items
« on: July 26, 2012, 06:13:53 AM »
Hi
I'm trying to make UI function with NGUI.
Because I'm not a programmer, it's little bit hard to making function what I wanted.

I'm attaching a pic which is captured from my Unity view.

there's draggable panel which contains several items.
(actually draggable not by touch or mouse but by button below)
If I click left button, panel moves to left each by item and fit at exact position.
Same as right button.
If I click attach button, item will be disappear and attach to slot bank.

Please anybody advise me.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Draggable panel moves by button and attach items
« Reply #1 on: July 26, 2012, 04:09:21 PM »
See this thread on how to make the panel scroll to a specific item:

http://www.tasharen.com/forum/index.php?topic=1052.msg5614#msg5614