Skip to content

Commit 2151f1d

Browse files
committed
adding deprecated message
1 parent 875a2b2 commit 2151f1d

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

core/load_bdcore.lua

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,37 @@ bdCore:SetScript("OnEvent", function(self, event, arg1, arg2, ...)
5858

5959
-- a lot of addons do this when they shouldn't it should really only be done when addons finish loading
6060
collectgarbage("collect")
61+
62+
print(bdCore.colorString.." - All bd addons have been replaced by a single suite, called bdUI. Download on the twitch client or at https://www.curseforge.com/wow/addons/bdui . All support for the individual addons are going away, but the suite is entirely modular!");
63+
64+
MOD_TextFrame = CreateFrame("Frame");
65+
MOD_TextFrame:ClearAllPoints();
66+
MOD_TextFrame:SetHeight(300);
67+
MOD_TextFrame:SetWidth(300);
68+
MOD_TextFrame:SetScript("OnUpdate", MOD_TextFrame_OnUpdate);
69+
MOD_TextFrame:Hide();
70+
MOD_TextFrame.text = MOD_TextFrame:CreateFontString(nil, "BACKGROUND", "PVPInfoTextFont");
71+
MOD_TextFrame.text:SetAllPoints();
72+
MOD_TextFrame:SetPoint("CENTER", 0, 200);
73+
MOD_TextFrameTime = 0;
74+
75+
function MOD_TextFrame_OnUpdate()
76+
if (MOD_TextFrameTime < GetTime() - 3) then
77+
local alpha = MOD_TextFrame:GetAlpha();
78+
if (alpha ~= 0) then MOD_TextFrame:SetAlpha(alpha - .05); end
79+
if (alpha == 0) then MOD_TextFrame:Hide(); end
80+
end
81+
end
82+
83+
function MOD_TextMessage(message)
84+
MOD_TextFrame.text:SetText(message);
85+
MOD_TextFrame:SetAlpha(1);
86+
MOD_TextFrame:Show();
87+
MOD_TextFrameTime = GetTime();
88+
end
89+
90+
MOD_TextMessage("All "..bdCore.colorString.." addons have been replaced by a single suite, called bdUI. Download on the twitch client or at https://www.curseforge.com/wow/addons/bdui . All support for the individual addons are going away, but the suite is entirely modular!")
91+
6192
elseif (event == "ADDON_LOADED" and bdCore.loaded) then
6293
bd_do_action("addon_loaded")
6394
elseif (event == "LOADING_SCREEN_DISABLED") then

init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,4 @@ SlashCmdList["BDCORE"] = function(msg, editbox)
9393
print(bdCore.colorString.." "..msg.." not recognized as a command.")
9494
end
9595
end
96+

0 commit comments

Comments
 (0)