WoWInterface SVN UrbanAchiever

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 48 to Rev 49
    Reverse comparison

Rev 48 → Rev 49

Main.lua
1040,6 → 1040,7
self:InsertIntoChat(id)
elseif IsShiftKeyDown() then
self:AddTracker(id)
self:RefreshAchievementButtons(false)
else
self.currentAch = id
if GetPreviousAchievement(id) and (not GetNextAchievement(id)) then
1442,7 → 1443,11
-- self.frame.achButtons[button].background:SetTexture("Interface\\AchievementFrame\\UI-Achievement-Parchment-Horizontal")
end
 
if reward ~= "" then --Theres a reward, it takes precidence
if self:IsTracking(id) then
self.frame.achButtons[button].expand:SetTextColor(0,1,0)
self.frame.achButtons[button].expand:SetText("T")
self.frame.achButtons[button].expand:Show()
elseif reward ~= "" then --Theres a reward, it takes precidence
self.frame.achButtons[button].expand:SetTextColor(1,0,0)
self.frame.achButtons[button].expand:SetText("!")
self.frame.achButtons[button].expand:Show()
2171,3 → 2176,10
self:SetTrackerAchievement(i, self.tracker.achievements[i]:GetID())
end
end
 
function self:IsTracking(id)
for i=1, #self.tracker.achievements do
if id == self.tracker.achievements[i]:GetID() then return true end
end
return false
end