WoWInterface SVN UrbanAchiever

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 85 to Rev 86
    Reverse comparison

Rev 85 → Rev 86

Localization.frFR.lua New file
0,0 → 1,11
if GetLocale() == 'frFR' then
UAToggleAF = "Afficher la fen\195\170tre de Hauts Faits";
UAComparing = "Comparer \195\160";
UACompleted = "Accompli";
UARecentAchiev = "Hauts Faits r\195\169cents";
UARecentStat = "Statistiques r\195\169centes";
UAAchievEarned = "Hauts Faits accompli";
UASummary = "R\195\169sum\195\169";
UAAchievement = "Hauts Faits";
UAStatistic = "Statistiques";
end
\ No newline at end of file
Localization.enUS.lua New file
0,0 → 1,9
UAToggleAF = "Toggle Achievement Frame";
UAComparing = "Comparing";
UACompleted = "Completed";
UARecentAchiev = "Recent Achievements";
UARecentStat = "Recent Statistics";
UAAchievEarned = "Achievements Earned";
UASummary = "Summary";
UAAchievement = "Achievements";
UAStatistic = "Statistics";
\ No newline at end of file
UrbanAchiever.toc
1,8 → 1,8
## Interface: 40000
## Title: Urban Achiever
## Author: Syzgyn Modified by Tomate
## Author: Syzgyn, Tomate
## Notes: Improved Achievement Frame
## Version 0.11.3.wowi:revision
## Version 0.12.1.wowi:revision
## OptionalDeps: Blizzard_AchievementUI
## SavedVariables: UASV
## SavedVariablesPerCharacter: UASVPC
12,4 → 12,8
 
Main.lua
FactionSpecificAchievements.lua
Options.lua
\ No newline at end of file +Options.lua + +#Localization +Localization.enUS.lua +Localization.frFR.lua \ No newline at end of file
Main.lua
7,7 → 7,7
-------------------------------------------------------------
--bindings
BINDING_HEADER_URBANACHIEVER = "Urban Achiever"
BINDING_NAME_URBANACHIEVER_TOGGLE = "Toggle Achievement Frame"
BINDING_NAME_URBANACHIEVER_TOGGLE = UAToggleAF
 
local MAX_ACHIEVEMENTS = 5000
local menuTypes = {"PLAYER", "PARTY", "RAID_PLAYER"}
685,7 → 685,7
 
--Comparison Header Text
self.compHeaderText = self.comparison:CreateFontString("$parentCompHeaderText", "ARTWORK", "GameFontNormal")
self.compHeaderText:SetText("Comparing [Name here]")
self.compHeaderText:SetText(UAComparing .. " [Name here]")
self.compHeaderText:SetPoint("RIGHT", self.compShield, "LEFT", -5, 2)
 
--Comparison Button
715,15 → 715,15
self.frame.category.backdrop:SetPoint("TOPLEFT", 6, -6)
self.frame.category.backdrop:SetPoint("BOTTOMRIGHT", -6, 6)
self.frame.category.backdrop:SetTexture("Interface\\AchievementFrame\\UI-Achievement-Parchment")
--self.frame.category.backdrop:SetTexCoord(0,0.65,0,1)
self.frame.category.backdrop:SetTexCoord(0,0,.5,1)
--self.frame.category.backdrop:SetTexture(0,0,0,1)
self.frame.category:SetPoint("RIGHT", self.frame, "LEFT", 12, 0)
 
--Tab Buttons
self.frame.tabButtons[1] = self:CreateTab("$parentTab1", self.frame, "Achievements", "achievements")
self.frame.tabButtons[1] = self:CreateTab("$parentTab1", self.frame, UAAchievement, "achievements")
self.frame.tabButtons[1]:SetPoint("TOPLEFT", self.frame, "BOTTOMLEFT", 20, 6)
 
self.frame.tabButtons[2] = self:CreateTab("$parentTab1", self.frame, "Statistics", "statistics")
self.frame.tabButtons[2] = self:CreateTab("$parentTab1", self.frame, UAStatistic, "statistics")
self.frame.tabButtons[2]:SetPoint("TOPLEFT", self.frame.tabButtons[1], "TOPRIGHT", 5, 0)
 
--self.frame.tabButtons[3] = self:CreateTab("$parentTab1", self.frame, "Search", "search")
924,7 → 924,7
self.frame.display.compareDate = self.frame.display:CreateFontString("$parentReward", "ARTWORK", "GameFontNormal")
self.frame.display.compareDate:SetPoint("TOP", self.frame.display.reward, "BOTTOM", 0, -1)
self.frame.display.compareDate:SetTextColor(0,1,0)
self.frame.display.compareDate:SetText("Syzgyn Completed: 12/12/12")
self.frame.display.compareDate:SetText("Tomate " .. Completed .. ": 12/12/12")
self.frame.display.compareDate:Hide()
 
--Display Bar
1411,7 → 1411,7
--Insert summary Category
tinsert(self.categories[tab], {
["id"] = "-1",
["name"] = "Summary",
["name"] = UASummary,
["collapsed"] = true,
["children"] = {}
})
1622,14 → 1622,14
self.frame.display.shield:SetTexCoord(0 , .5, 0, .5)
self.frame.display.points:SetVertexColor(1, 1, 1)
self.frame.display.reward:SetTextColor(0,1,0)
self.frame.display.reward:SetText("Completed: " .. completed)
self.frame.display.reward:SetText(UACompleted .. ": " .. completed)
end
 
if self.isComparing then
local compDone, m, d, y = GetAchievementComparisonInfo(id,1)
if compDone then
self.frame.display.compareDate:Show()
self.frame.display.compareDate:SetText(string.format("%s Completed: %d/%d/0%d", self.comparisonUnitName, m or -1, d or -1, y or -1))
self.frame.display.compareDate:SetText(string.format("%s " .. UACompleted .. ":" .." %d/%d/0%d", self.comparisonUnitName, m or -1, d or -1, y or -1))
end
end
self:RefreshCriteriaButtons()
1878,7 → 1878,7
if self.currentCat == -1 then --Summary category
--Incredibly hackish on my part :\
self.frame.achButtons[buttonNum]:SetWidth(300)
self.frame.achButtons[buttonNum].name:SetText("Recent Achievements:")
self.frame.achButtons[buttonNum].name:SetText(UARecentAchiev .. ":")
self.frame.achButtons[buttonNum].completed:SetText("")
self.frame.achButtons[buttonNum].compare:SetText("")
self.frame.achButtons[buttonNum].points:SetText("")
1903,7 → 1903,7
end
 
self.frame.achButtons[buttonNum]:SetWidth(300)
self.frame.achButtons[buttonNum].name:SetText("Recent Statistics:")
self.frame.achButtons[buttonNum].name:SetText(UARecentStat .. ":")
self.frame.achButtons[buttonNum].completed:SetText("")
self.frame.achButtons[buttonNum].compare:SetText("")
self.frame.achButtons[buttonNum].points:SetText("")
2005,7 → 2005,7
self.frame.summaryBar:SetMinMaxValues(0, total)
self.frame.summaryBar:SetValue(completed)
self.frame.summaryBar.text:SetText(completed .. "/" .. total)
self.frame.summaryBar.name:SetText(name .. " Achievements Earned")
self.frame.summaryBar.name:SetText(name .. " " .. UAAchievEarned)
 
if self.isComparing then
local comparisonCompleted = GetComparisonCategoryNumAchievements(compareCat)
2026,7 → 2026,7
self.frame.achSort.comparison:Show()
self.compPointsText:SetText(GetComparisonAchievementPoints())
if UnitExists(self.comparisonUnit) then
self.compHeaderText:SetText(string.format("Comparing %s", self.comparisonUnitName))
self.compHeaderText:SetText(string.format(UAComparing .. " %s", self.comparisonUnitName))
end
else
self.comparison:Hide()