Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Tulrath

Pages: [1]
1
NGUI 3 Documentation / Re: UILabel
« on: September 06, 2014, 11:30:08 PM »
That worked.  Thank you!

2
NGUI 3 Documentation / Re: UIPanel
« on: September 06, 2014, 11:27:28 PM »
Is there a way to reduce the alpha on a panel (say, for example to 0.1f) without fading the contents?

3
NGUI 3 Documentation / Re: UILabel
« on: September 03, 2014, 04:17:25 PM »
Aren,

When I set the top or bottom gradient color from code, the color value doesn't seem to be getting set correctly.


...here is the code...


  1. UILabel label = GetComponent<UILabel>();
  2. label.gradientTop = new Color(255f,220f,0);
  3. label.gradientBottom = new Color(255f,0,0);
  4.  

...but when this runs, the color values seem to get "re-scaled" to a value between 0 and 65025, which results (apparently) in them not being considered correct colors, or just being ignored. 

At runtime if I then try to change the color values in the color gadget in the Unity Inspector to the proper RGB values, I get (in this example) a nice red-to-orange gradient as expected.  But when I set them through code, I get these "squared" values and the text just appears white.


Pages: [1]