Author Topic: UIScroll Bar Alpha Reset  (Read 3253 times)

PixelEnvision

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 35
    • View Profile
    • Pixel Envision
UIScroll Bar Alpha Reset
« 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.
Pixel Envision - Creating fun apps for iOS & Android

Twitter / Facebook / YouTube

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIScroll Bar Alpha Reset
« Reply #1 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).

PixelEnvision

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 35
    • View Profile
    • Pixel Envision
Re: UIScroll Bar Alpha Reset
« Reply #2 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...
Pixel Envision - Creating fun apps for iOS & Android

Twitter / Facebook / YouTube

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIScroll Bar Alpha Reset
« Reply #3 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.

PixelEnvision

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 35
    • View Profile
    • Pixel Envision
Re: UIScroll Bar Alpha Reset
« Reply #4 on: June 22, 2012, 11:04:08 AM »
I see, thx.

Btw, may I suggest a 4th option "do not modify visibility"  ::)
Pixel Envision - Creating fun apps for iOS & Android

Twitter / Facebook / YouTube