Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: PixelEnvision on June 22, 2012, 06:11:53 AM

Title: UIScroll Bar Alpha Reset
Post by: PixelEnvision on June 22, 2012, 06:11:53 AM
Hi,

Just noticed that bug(?)...

Alpha value of a UIScroll Bar resets back to 1 IF it's tied to a UIDraggable Panel.
Title: Re: UIScroll Bar Alpha Reset
Post by: ArenMook on June 22, 2012, 10:48:35 AM
Check your panel settings. Scroll bars associated with the draggable panels have their alpha changed automatically by default (depending on what you specify the panel should do). For example, "Only When Needed" setting will fade in the scroll bar only when it's needed, and otherwise keep it at alpha of 0 (invisible).
Title: Re: UIScroll Bar Alpha Reset
Post by: PixelEnvision on June 22, 2012, 10:56:33 AM
Thx for the info, actually it's also the same on Example 7...

I understand why/how but wouldn't it be better if "always" setting doesn't change it back to 1?

I wanted to make it slightly transparent, currently solved that by using a new set of images that comes with transparency... Of course that takes up atlas space...
Title: Re: UIScroll Bar Alpha Reset
Post by: ArenMook on June 22, 2012, 11:00:38 AM
"Always" means the scroll bar is always visible, ie alpha of 1. Sounds like you should modify the code to get the behavior you want, or just turn off the logic that changes the alpha.
Title: Re: UIScroll Bar Alpha Reset
Post by: PixelEnvision on June 22, 2012, 11:04:08 AM
I see, thx.

Btw, may I suggest a 4th option "do not modify visibility"  ::)