/trunk
local CHARACTER_MAXLEVEL = 80; |
LevelSnap = { |
if (not LevelSnap) then |
LevelSnap = {} |
end |
Setting = { |
LevelSnap.Setting = { |
Version = GetAddOnMetadata("LevelSnap", "Version"); |
Revision = tonumber(strsub("$Rev$", 7, strlen("$Rev$") - 2)); |
}, |
} |
On = { |
LevelSnap.On = { |
Event = function(event) |
end; |
}, |
} |
Function = { |
LevelSnap.Function = { |
TakeScreenshot = function() |
Chronos.schedule(1, TakeScreenshot) |
end; |
}, |
} |
Out = { |
LevelSnap.Out = { |
Print = function(msg) |
DEFAULT_CHAT_FRAME:AddMessage(LS_TITLE..": "..msg, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b) |
LevelSnap.Out.Print(LS_VERSION..": "..LevelSnap.Color.Green(version)) |
end; |
}, |
} |
Color = { |
LevelSnap.Color = { |
Green = function(msg) |
return "|cff00cc00"..msg.."|r"; |
return "|cffff0000"..msg.."|r"; |
end; |
}, |
} |
if (not LevelSnapFrame) then |