WoW:API UIObject SetAlpha: Difference between revisions

no edit summary
({{widgetmethod}})
No edit summary
Line 1: Line 1:
{{widgetmethod}}
{{widgetmethod}}


Sets the alpha of given object. Alpha is an integer between 0 and 255, 255 being opaque, 0 being transparent.
Sets the alpha of given object. Alpha is an integer between 0 and 1.  1 being opaque, 0 being transparent.


e.g. MyFrame:SetAlpha(200); makes the frame translucent, more visible than not.
Note: If you attempt to set the same value to this more than once it will detect this and will return early after the first attempt.
 
e.g. MyFrame:SetAlpha(.75); makes the frame translucent, more visible than not.
Anonymous user