Quantcast
WoWInterface: SVN - AchievementSnap - Path Comparison - / Rev 7 and / Rev 8

WoWInterface SVN AchievementSnap

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 7 to Rev 8
    Reverse comparison

Rev 7 → Rev 8

trunk/AchievementSnap/AchievementSnap.lua
37,14 → 37,14
 
local CHARACTER_MAXLEVEL = 80;
 
AchievementSnap = {
AchievementSnap = {}
 
Setting = {
AchievementSnap.Setting = {
Version = GetAddOnMetadata("AchievementSnap", "Version");
Revision = tonumber(strsub("$Rev: 1057 $", 7, strlen("$Rev: 1057 $") - 2));
},
}
 
On = {
AchievementSnap.On = {
 
Event = function(event)
 
63,17 → 63,30
 
end;
 
},
}
 
Function = {
AchievementSnap.Function = {
 
TakeScreenshot = function()
Chronos.schedule(1, TakeScreenshot)
end;
 
},
SetMinLevel = function(value)
if (value >= AchievementSnap.maxControl:GetValue()) then
AchievementSnap.maxControl:SetValue(value)
AchievementSnap.maxControl:Update()
end
end;
 
SetMaxLevel = function(value)
if (value <= AchievementSnap.minControl:GetValue()) then
AchievementSnap.minControl:SetValue(value)
AchievementSnap.minControl:Update()
end
end;
}
 
Out = {
AchievementSnap.Out = {
 
Print = function(msg)
DEFAULT_CHAT_FRAME:AddMessage(ASNAP_TITLE..": "..msg, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b)
100,9 → 113,9
AchievementSnap.Out.Print(ASNAP_VERSION..": "..AchievementSnap.Color.Green(version))
end;
 
},
}
 
Color = {
AchievementSnap.Color = {
 
Green = function(msg)
return "|cff00cc00"..msg.."|r";
112,8 → 125,6
return "|cffff0000"..msg.."|r";
end;
 
},
 
}
 
if (not AchievementSnapFrame) then
123,6 → 134,11
frame:RegisterEvent("ACHIEVEMENT_EARNED")
end
 
SLASH_ASNAP1 = "/asnap";
SlashCmdList["ASNAP"] = function()
InterfaceOptionsFrame_OpenToCategory("AchievementSnap")
end
 
--[[ Portfolio Registration ]]--
 
local Portfolio = LibStub("Portfolio", true)
154,7 → 170,7
},
{
id = "MinLevel",
text = ASNAP_MINIMUM,
text = ASNAP_MINIMUM.." (%s)",
subText = ASNAP_HELP_MIN,
type = CONTROLTYPE_SLIDER,
minText = "Min",
163,15 → 179,11
minValue = 1,
maxValue = CHARACTER_MAXLEVEL,
valueStep = 1,
callback = function(value)
if (value >= AchievementSnap_SavedVars["MaxLevel"]) then
AchievementSnap_SavedVars["MaxLevel"] = value
end
end,
callback = AchievementSnap.Function.SetMinLevel,
},
{
id = "MaxLevel",
text = ASNAP_MAXIMUM,
text = ASNAP_MAXIMUM.." (%s)",
subText = ASNAP_HELP_MAX,
type = CONTROLTYPE_SLIDER,
minText = "Min",
180,11 → 192,7
minValue = 1,
maxValue = CHARACTER_MAXLEVEL,
valueStep = 1,
callback = function(value)
if (value <= AchievementSnap_SavedVars["MinLevel"]) then
AchievementSnap_SavedVars["MinLevel"] = value
end
end,
callback = AchievementSnap.Function.SetMaxLevel,
point = {"TOPLEFT", "MinLevel", "TOPRIGHT", 80, 0},
},
--[[
201,6 → 209,8
savedVarTable = "AchievementSnap_SavedVars",
}
 
Portfolio.RegisterOptionSet(optionTable)
local optionsFrame = Portfolio.RegisterOptionSet(optionTable)
AchievementSnap.minControl = optionsFrame:GetControl("MinLevel")
AchievementSnap.maxControl = optionsFrame:GetControl("MaxLevel")
 
end
\ No newline at end of file