Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: ryan on July 16, 2012, 04:01:45 PM

Title: Positioning of UIScrollbar widgets and nine-slicing
Post by: ryan on July 16, 2012, 04:01:45 PM
Would it be possible to get some sort of option in UIScrollbar so that when it positions the foreground sprite, it ignores the sprites' borders?  I have a scrollbar with a sliced foreground and a non-sliced background, and the foreground ends up extending past the ends of the background.  I can also have an artist adjust my background sprite so I can specify matching borders, but the flexibility would be nice.
Title: Re: Positioning of UIScrollbar widgets and nine-slicing
Post by: JRoch on July 16, 2012, 04:08:09 PM
Things I found that help with that:

Title: Re: Positioning of UIScrollbar widgets and nine-slicing
Post by: ryan on July 16, 2012, 04:27:47 PM
Yeah, there's no padding involved, and my foreground is 3-sliced.  My problem is that the top and bottom borders of the sprite make up about 90% of the sprite's original height.  With no borders at all on the background, the thumb ends up extending about 20 pixels above or below the edge of the background.  In this case the art can be modified to work more as the code intended, but assuming that won't always be an option, I thought I'd make the request.