WoWInterface SVN UrbanAchiever

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 51 to Rev 52
    Reverse comparison

Rev 51 → Rev 52

Main.lua
208,10 → 208,6
self:SetupFrames()
 
UrbanAchiever:CreateOptions()
--AchievementFrame:SetScript("OnShow", function()
-- AchievementFrame:Hide()
-- self.frame:Show()
--end)
 
self:UnregisterEvent("ADDON_LOADED")
end
543,9 → 539,6
self.frame:StopMovingOrSizing()
end
end)
self.frame:SetScript("OnShow",function()
self:UpdateFunction()
end)
 
--Initialize arrays
self.frame.catButtons = {}
673,10 → 666,6
--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)
863,8 → 852,7
 
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)
1267,7 → 1255,7
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())
1777,7 → 1765,6
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