API Region SetIgnoreParentAlpha

From Wowpedia
Jump to: navigation, search

Sets whether this frame should ignore its parent's effective alpha value.

frame:SetIgnoreParentAlpha(ignoreAlpha)

Arguments

ignoreAlpha 
Boolean - if true, the widget's effective alpha value will be the product of its own alpha value with the effective alpha value of its parent; if false, its effective alpha value will be equal to its own alpha value.

Example

local Parent = CreateFrame('Frame', nil, UIParent)
local Child = CreateFrame('Frame', nil, Parent)
Parent:SetAlpha(0.5)
Child:SetIgnoreParentAlpha(true)
Result
The frame 'Child' will not be affected by the Alpha of 'Parent'