Author Topic: Scrolling on a curved shape  (Read 2638 times)

bezii

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 19
    • View Profile
Scrolling on a curved shape
« on: August 20, 2014, 06:35:14 PM »
Hi,

Is it possible to scroll things on a curved shape ?

Like:


http://s28.postimg.org/72hnm4uu5/Assassins_Creed_III_small_367.jpg

?

bezii

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 19
    • View Profile
Re: Scrolling on a curved shape
« Reply #1 on: August 21, 2014, 08:26:55 AM »
Anyone? It is really important.

badawe

  • Jr. Member
  • **
  • Thank You
  • -Given: 8
  • -Receive: 7
  • Posts: 70
    • View Profile
Re: Scrolling on a curved shape
« Reply #2 on: August 21, 2014, 08:42:18 AM »
Sure is, but not with anything NGUI have already, you must write your own controller.

bezii

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 19
    • View Profile
Re: Scrolling on a curved shape
« Reply #3 on: August 21, 2014, 08:43:25 AM »
Ok, thanks for the info.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Scrolling on a curved shape
« Reply #4 on: August 21, 2014, 02:45:24 PM »
Totally possible. You might run into some issues getting it to clip in a non rectangle, but that's solvable. In fact, weren't you gonna implement stencil masks for clipping on UIPanels, ArenMook? ;)

bach

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 1
  • Posts: 6
    • View Profile
Re: Scrolling on a curved shape
« Reply #5 on: August 21, 2014, 05:58:46 PM »
Lay the buttons out in a circle, sort of an invisible wheel.

Then touch drag to rotate the wheel.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scrolling on a curved shape
« Reply #6 on: August 22, 2014, 03:51:24 AM »
Lay the buttons out in a circle, sort of an invisible wheel.

Then touch drag to rotate the wheel.
That is indeed the easiest thing to do.

Alternatively just stick to a regular scroll view where items move up and down, but write a script placed on the scroll view's items that will change their X position based on their Y position. Trivial stuff.