Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
No edit summary
mNo edit summary
Line 1: Line 1:
{{widgetmethod}}
+
{{widgetmethod}} __NOTOC__
   
 
Sets the alpha (transparency) of the given object.
 
Sets the alpha (transparency) of the given object.

Revision as of 00:04, 27 September 2007

Sets the alpha (transparency) of the given object.

MyObject:SetAlpha(alpha)

Arguments

Alpha
Number - a floating-point number between 0 and 1. 1 is fully opaque, 0 is transparent (in fact, invisible).

Example

MyFrame:SetAlpha(.75); 

Makes the frame translucent, more visible than not.

Notes

As of patch 2.1.0, transparency propagates down through all child objects.

"Frame alpha now propagates in the same way as scale (though is clamped between 0 and 1 on each object). This means you can cleanly fade the whole UI or specific frame assemblies."

See also

  • Frame:GetEffectiveAlpha()
  • UIObject:GetAlpha()