Skip to content

Commit

Permalink
Discontinued message. Thanks for everything, folks!
Browse files Browse the repository at this point in the history
  • Loading branch information
Cidan committed Jul 31, 2024
1 parent 185b705 commit 9477cd0
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 53 deletions.
76 changes: 38 additions & 38 deletions AdiBags.toc
Original file line number Diff line number Diff line change
Expand Up @@ -46,46 +46,46 @@ libs\LibDataBroker-1.1\LibDataBroker-1.1.lua
core\EventHandlers.lua
core\Boot.lua

Localization.lua
#Localization.lua

core\Experiments.lua
core\Fonts.lua
core\Constants.lua
core\Utility.lua
core\Theme.lua
core\Core.lua
core\Hooks.lua
core\Bags.lua
core\Filters.lua
core\Layout.lua
core\OO.lua
#core\Experiments.lua
#core\Fonts.lua
#core\Constants.lua
#core\Utility.lua
#core\Theme.lua
#core\Core.lua
#core\Hooks.lua
#core\Bags.lua
#core\Filters.lua
#core\Layout.lua
#core\OO.lua

widgets\LayeredRegion.lua
widgets\grid\Dropzone.lua
widgets\grid\Cell.lua
widgets\grid\Column.lua
widgets\grid\Grid.lua
widgets\ContainerFrame.lua
widgets\BagSlots.lua
widgets\ItemButton.lua
widgets\Section.lua
widgets\AnchorWidget.lua

modules\DataSource.lua
modules\NewItemTracking.lua
modules\MoneyFrame.lua
modules\FilterOverride.lua
modules\ItemLevel.lua
modules\Junk.lua
modules\CurrencyFrame.lua
modules\TooltipInfo.lua
modules\SectionVisibilityDropdown.lua
modules\BankSwitcher.lua
modules\ChangeHighlight.lua
modules\Masque.lua

core\ItemDatabase.lua
core\DefaultFilters.lua
#widgets\LayeredRegion.lua
#widgets\grid\Dropzone.lua
#widgets\grid\Cell.lua
#widgets\grid\Column.lua
#widgets\grid\Grid.lua
#widgets\ContainerFrame.lua
#widgets\BagSlots.lua
#widgets\ItemButton.lua
#widgets\Section.lua
#widgets\AnchorWidget.lua
#
#modules\DataSource.lua
#modules\NewItemTracking.lua
#modules\MoneyFrame.lua
#modules\FilterOverride.lua
#modules\ItemLevel.lua
#modules\Junk.lua
#modules\CurrencyFrame.lua
#modules\TooltipInfo.lua
#modules\SectionVisibilityDropdown.lua
#modules\BankSwitcher.lua
#modules\ChangeHighlight.lua
#modules\Masque.lua
#
#core\ItemDatabase.lua
#core\DefaultFilters.lua
core\Deprecation.lua

#@debug@
Expand Down
6 changes: 5 additions & 1 deletion core/Boot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,8 @@ local moduleProto = {
end,
}
addon.moduleProto = moduleProto
addon:SetDefaultModulePrototype(moduleProto)
addon:SetDefaultModulePrototype(moduleProto)

function addon:OnInitialize()
self:Deprecation()
end
6 changes: 3 additions & 3 deletions core/Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ end
--@end-debug@

local bagKeys = {"backpack", "bank", "reagentBank"}
function addon:OnInitialize()

function addon:OnInitializeOld()
-- Create the default font settings for each bag type.
for _, name in ipairs(bagKeys) do
local bfd = self:GetFontDefaults(GameFontHighlightLarge)
Expand Down Expand Up @@ -111,11 +112,10 @@ function addon:OnInitialize()
C_CVar.SetCVar("professionAccessorySlotsExampleShown", 1)
end

self:Deprecation()
self:Debug('Initialized')
end

function addon:OnEnable()
function addon:OnEnableOld()

self.globalLock = false

Expand Down
14 changes: 3 additions & 11 deletions core/Deprecation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ local addon = LibStub('AceAddon-3.0'):GetAddon(addonName)
-- This is a deprecation message for AdiBags. To remove this for whatever reason,
-- remove this call from Core.lua in OnInitialize.
function addon:Deprecation()
if addon.db.profile.deprecationPhase < 2 then
print("AdiBags is deprecated and will get no new feature releases.")
print("AdiBags is discontinued and will get no new releases.")
print("Please consider switching to AdiBags' successor, BetterBags.")
print("BetterBags is available at Curse, Wago, and github.com/Cidan/BetterBags")
local frame = CreateFrame("Frame", nil, UIParent, "BackdropTemplate")
Expand All @@ -26,12 +25,7 @@ function addon:Deprecation()
text:SetPoint("LEFT", 20, 0)
text:SetJustifyH("LEFT")
text:SetText([[
AdiBags is deprecated, will get no new feature releases, and may or may not get bug fixes over time.
Please consider switching to AdiBags' successor, BetterBags.
BetterBags is written by the same team that maintains AdiBags.
BetterBags is available at Curse, Wago, and github.com/Cidan/BetterBags
This message will not be shown again, but you can continue to use AdiBags so long as it works.
Thanks! :)
AdiBags is discontinued, will get no new releases or bug fixes. Please consider switching to AdiBags' successor, BetterBags. BetterBags is written by the same team that maintains AdiBags. BetterBags is available at Curse, Wago, and github.com/Cidan/BetterBags
]])
text:SetWordWrap(true)
text:SetWidth(400)
Expand All @@ -40,11 +34,9 @@ Thanks! :)
local button = CreateFrame("Button", nil, frame, "UIPanelButtonTemplate")
button:SetSize(180, 25)
button:SetPoint("BOTTOM", 0, 10)
button:SetText("Do Not Show Again")
button:SetText("Close")
button:SetScript("OnClick", function()
addon.db.profile.deprecationPhase = 2
frame:Hide()
end)
frame:Show()
end
end

0 comments on commit 9477cd0

Please sign in to comment.