local timer = CreateFrame("Frame" wink
timer:Hide()
timer:SetScript("OnUpdate", function(self, elapsed)
self.elapsed = self.elapsed + elapsed
if self.elapsed >= 30 then
UIFrameFadeOut(blackFrame, 10, 1, 0);
blackFrame = nil;
self.elapsed = 0
self:Hide()
end
end)
blackFrame = CreateFrame("Frame", nil, nil);
blackFrame:SetFrameStrata("DIALOG" wink ;
blackFrame:SetWidth(2000);
blackFrame:SetHeight(2000);
local temp = CreateFrame("Frame", nil, blackFrame)
temp:SetWidth(2000)
temp:SetHeight(2000)
temp.bg = temp:CreateTexture(nil, "CENTER" wink
temp.bg:SetTexture(0,0,0,1)
temp.bg:SetAllPoints(temp)
temp:SetPoint("CENTER" wink
blackFrame:SetPoint("CENTER",0,0);
UIFrameFadeIn(blackFrame, 1, 0, 1);
timer.elapsed = 0
timer:Show()
View User's Journal
Life according to Nex
Farewell, my shadow, you who stand at the end of the path I chose not to follow.