Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: bezii on August 20, 2014, 06:35:14 PM

Title: Scrolling on a curved shape
Post by: bezii 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)
http://s28.postimg.org/72hnm4uu5/Assassins_Creed_III_small_367.jpg

?
Title: Re: Scrolling on a curved shape
Post by: bezii on August 21, 2014, 08:26:55 AM
Anyone? It is really important.
Title: Re: Scrolling on a curved shape
Post by: badawe on August 21, 2014, 08:42:18 AM
Sure is, but not with anything NGUI have already, you must write your own controller.
Title: Re: Scrolling on a curved shape
Post by: bezii on August 21, 2014, 08:43:25 AM
Ok, thanks for the info.
Title: Re: Scrolling on a curved shape
Post by: Nicki 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? ;)
Title: Re: Scrolling on a curved shape
Post by: bach 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.
Title: Re: Scrolling on a curved shape
Post by: ArenMook 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.