WoW:API UIObject SetAlpha: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
({{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.

Revision as of 02:02, 4 July 2006

Widget API ← UIObject < SetAlpha

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

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.