WoWInterface SVN UrbanAchiever

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 80 to Rev 81
    Reverse comparison

Rev 80 → Rev 81

UrbanAchiever.toc
2,7 → 2,7
## Title: Urban Achiever
## Author: Syzgyn Modified by Tomate
## Notes: Improved Achievement Frame
## Version 0.10.0.wowi:revision
## Version 0.10.1.wowi:revision
## OptionalDeps: Blizzard_AchievementUI
## SavedVariables: UASV
## SavedVariablesPerCharacter: UASVPC
Main.lua
455,8 → 455,18
if not type(id) == "number" then return end
local id, name, points, completed, month, day, year, description, _,_, reward = GetAchievementInfo(id)
if not id then return nil end
 
if completed then completed = month .. "/" .. day .. "/0" .. year else completed = "" end
if completed then
if year < 10 then
year = "0" .. year;
end
if (GetLocale() == "frFR") then
completed = day .. "/" .. month .. "/" .. year;
else
completed = month .. "/" .. day .. "/" .. year;
end
else
completed = "";
end
--searchString will be used as a basis of the searching, instead of looping through all the sub-arrays
searchStr = name .. "; " .. points .. "; " .. completed .. "; " .. description .. "; " .. reward .. "; "
 
1438,7 → 1448,19
 
function self:SetAchievementButton(button, id, offset)
local id, name, points, completed, month, day, year, description, _, icon, reward = GetAchievementInfo(id)
if completed then completed = month .. "/" .. day .. "/0" .. year else completed = "" end
 
if completed then
if year < 10 then
year = "0" .. year;
end
if (GetLocale() == "frFR") then
completed = day .. "/" .. month .. "/" .. year;
else
completed = month .. "/" .. day .. "/" .. year;
end
else
completed = "";
end
if not offset then offset = 1 end
 
self.frame.achButtons[button]:SetWidth(300)
1574,8 → 1596,18
self.frame.display.shield:Show()
self.frame.display.name:SetJustifyH("LEFT")
self.frame.display.name:SetWidth(220)
 
if completed then completed = month .. "/" .. day .. "/0" .. year else completed = "" end
if completed then
if year < 10 then
year = "0" .. year;
end
if (GetLocale() == "frFR") then
completed = day .. "/" .. month .. "/" .. year;
else
completed = month .. "/" .. day .. "/" .. year;
end
else
completed = "";
end
 
if points == 0 then
self.frame.display.points:SetText("")