Author Topic: [SOLVED] widget color alpha not changing?  (Read 3406 times)

vexe

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 153
    • View Profile
[SOLVED] widget color alpha not changing?
« on: September 03, 2013, 01:05:38 AM »
Hello, this is pretty noob of me.  I want to access the 'tint color' of a widget, which is from my understanding is the 'color' property. I'm trying to change the alpha of my widget, (just like you do when you mess with the 'A" slider when you click on tint color).

I tried both myWidget.alpha = myFloatValue; and myWidget.color.a = myFloatValue; - The first had no effect, the second didn't compile.

Do I have to make a new color, copy the rgb values from the old color and apply the new alpha? - Isn't this how the alpha property is being set anyway? - Thanks.
« Last Edit: September 03, 2013, 01:13:39 AM by vexe »

vexe

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 153
    • View Profile
Re: widget color alpha not changing?
« Reply #1 on: September 03, 2013, 01:13:13 AM »
Lol. Didn't know color values ranges between 0 -> 1. I was using values between 0 -> 255.