fadeGroup:SetScript("OnFinished", function(self) WatchFrame:SetAlpha(self.targetAlpha) end) |
WatchFrame:SetAlpha(FADE_OUT_ALPHA) |
|
local pcall = pcall |
local descendants = setmetatable({}, { __index = function(t, f) |
local parent = f:GetParent() |
while parent do |
local ok, parent = pcall(f.GetParent, f) -- stupid fucking StoreFrame |
while ok and parent do |
if parent == WatchFrame then |
t[f] = true |
return true |
end |
parent = parent:GetParent() |
ok, parent = pcall(parent.GetParent, parent) |
end |
t[f] = false |
return false |