Skip to content

Commit

Permalink
Removed Old achievements filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wetxius committed Mar 27, 2020
1 parent 908fd96 commit c886289
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions ShestakUI/Modules/Misc/Misc.lua
Expand Up @@ -144,37 +144,6 @@ strip:SetScript("OnClick", function(_, button)
PlaySound(SOUNDKIT.GS_TITLE_OPTION_OK)
end)

----------------------------------------------------------------------------------------
-- Old achievements filter
----------------------------------------------------------------------------------------
function AchievementFrame_GetCategoryNumAchievements_OldIncomplete(categoryID)
local numAchievements, numCompleted = GetCategoryNumAchievements(categoryID)
return numAchievements - numCompleted, 0, numCompleted
end

function old_nocomplete_filter_init()
AchievementFrameFilters = {
{text = ACHIEVEMENTFRAME_FILTER_ALL, func = AchievementFrame_GetCategoryNumAchievements_All},
{text = ACHIEVEMENTFRAME_FILTER_COMPLETED, func = AchievementFrame_GetCategoryNumAchievements_Complete},
{text = ACHIEVEMENTFRAME_FILTER_INCOMPLETE, func = AchievementFrame_GetCategoryNumAchievements_Incomplete},
{text = ACHIEVEMENTFRAME_FILTER_INCOMPLETE.." ("..ALL.." )", func = AchievementFrame_GetCategoryNumAchievements_OldIncomplete}
}
end

local filter = CreateFrame("Frame")
filter:RegisterEvent("ADDON_LOADED")
filter:SetScript("OnEvent", function(_, _, addon)
if addon == "Blizzard_AchievementUI" then
if AchievementFrame then
old_nocomplete_filter_init()
if C.skins.blizzard_frames == true then
AchievementFrameFilterDropDown:SetWidth(AchievementFrameFilterDropDown:GetWidth() + 20)
end
filter:UnregisterEvent("ADDON_LOADED")
end
end
end)

----------------------------------------------------------------------------------------
-- Boss Banner Hider
----------------------------------------------------------------------------------------
Expand Down

0 comments on commit c886289

Please sign in to comment.