(cherry picked from commit 0b28c5780e55ac544c1acace487aad0a8d8faf28)
This commit is contained in:
NoM0Re
2026-01-13 00:47:51 -07:00
committed by andrew6180
parent 65ac8d1191
commit 05f060140a
36 changed files with 1367 additions and 99 deletions
@@ -1609,5 +1609,40 @@ function OptionsPrivate.CreateFrame()
local left, right, top, bottom = w/2,-w/2, 0, h-25
frame:SetClampRectInsets(left, right, top, bottom)
-- Add warning about Midnight support ending, to notify users about possible coming changes
local midnightWarning = CreateFrame("Frame", nil, frame)
midnightWarning:SetBackdrop({
bgFile = "Interface\\Addons\\WeakAuras\\Media\\Textures\\Square_FullWhite.tga",
edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
tile = true,
tileSize = 16,
edgeSize = 16,
insets = { left = 4, right = 4, top = 4, bottom = 4 }
})
midnightWarning:SetBackdropBorderColor(1, 0, 0, 1);
midnightWarning:SetBackdropColor(0, 0, 0, 1)
midnightWarning:SetPoint("TOPLEFT", frame, "BOTTOMLEFT")
midnightWarning:SetPoint("TOPRIGHT", frame, "BOTTOMRIGHT")
midnightWarning:SetHeight(50)
local text = midnightWarning:CreateFontString(nil, "OVERLAY", "GameFontNormalLarge")
text:SetPoint("LEFT", midnightWarning, "LEFT", 10, 0)
text:SetText(L["WeakAuras will not support Midnight. On release of the prepatch, WeakAuras will be disabled.\nRead more on our Patreon page https://patreon.com/WeakAuras"])
-- Fade-out animation and hide for rest of the session
local fade = midnightWarning:CreateAnimationGroup()
local alpha = fade:CreateAnimation("Alpha")
alpha:SetChange(-1)
alpha:SetDuration(0.5)
alpha:SetStartDelay(5) -- hide after 5 second
alpha:SetSmoothing("OUT")
fade:SetScript("OnFinished", function()
midnightWarning:Hide()
end)
fade:Play()
return frame
end