The API is no longer being updated here until further notice. |
Sets whether the region should ignore its parent's alpha.
Region:SetIgnoreParentAlpha(ignore)
Arguments[]
- ignore
- boolean
Example[]
Alpha propagates from a region to its children, unless disabled with SetIgnoreParentAlpha.
local parent = CreateFrame("Frame")
parent:SetAlpha(0.5)
local f = CreateFrame("Frame", nil, parent)
f:SetAlpha(0.5)
print(f:GetAlpha()) -- 0.50196081399918
print(f:GetEffectiveAlpha()) -- 0.25098040699959
f:SetIgnoreParentAlpha(true)
print(f:GetEffectiveAlpha()) -- 0.50196081399918