Region:SetIgnoreParentAlpha
(Redirected from API Frame SetIgnoreParentAlpha)
Jump to navigation
Jump to search
Region:GetAlpha |
||
Frame:GetEffectiveAlpha |
||
Region:SetAlpha |
||
Region:SetIgnoreParentAlpha |
||
Region:IsIgnoringParentAlpha |
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