/
self:SetupFrames() |
UrbanAchiever:CreateOptions() |
--AchievementFrame:SetScript("OnShow", function() |
-- AchievementFrame:Hide() |
-- self.frame:Show() |
--end) |
self:UnregisterEvent("ADDON_LOADED") |
end |
self.frame:StopMovingOrSizing() |
end |
end) |
self.frame:SetScript("OnShow",function() |
self:UpdateFunction() |
end) |
--Initialize arrays |
self.frame.catButtons = {} |
--Close Button |
self.frame.close = CreateFrame("Button", "$parentCloseButton", self.frame, "UIPanelCloseButton") |
self.frame.close:SetPoint("TOPRIGHT", self.frame, "TOPRIGHT", -4, -5) |
--No fucking clue why this doesn't work on self.frame |
self.frame.close:SetScript("OnShow",function() |
self:UpdateFunction() |
end) |
--Category Toggle Button |
self.frame.catToggle = CreateFrame("Button", "$parentCategoryToggleButton", self.frame) |
tinsert(UISpecialFrames,self.frame:GetName()) |
self.frame:SetScript("OnShow", function() |
self:ComparisonUpdate() |
self:RefreshAchievementButtons(false) |
self:UpdateFunction() |
if self.masterList[self.currentAch] then |
self:SetDisplayAchievement(self.currentAch) |
function self:UpdateFunction() |
if (not self.frame) or (not self.frame:IsShown()) then return end |
self:RefreshCategoryButtons() |
self:RefreshAchievementButtons() |
self:RefreshAchievementButtons(false) |
self:ComparisonUpdate() |
self:TrackerUpdate() |
self.pointsText:SetText(GetTotalAchievementPoints()) |
local count = 0 |
local buttonNum = 1 |
local prevId |
--sortStr = true dont change the table, sort it |
-- false dont change the table, dont sort it |
-- nil reset the table, sort it by name then completed |