/
Khaos - Optional |
-- Changes |
1.4.1 - Bugfix |
1.4.0 - Level Cap 80 |
1.31 - Updated TOC for 2.4 |
1.30 - Shows /played in screenshots |
- Removed hide ui option |
LS_Options = { |
Active = 1; |
MinLevel = 1; |
MaxLevel = 80; |
MaxLevel = 70; |
CloseWindows = 1; |
} |
disabled = { checked = false; slider = 1 }; |
setup = { |
sliderMin = 1; |
sliderMax = 80; |
sliderMax = 70; |
sliderStep = 1; |
sliderDisplayFunc = function(val) |
return val; |
end; |
LS_Options.MaxLevel = state.slider; |
end; |
default = { checked = false; slider = 80 }; |
disabled = { checked = false; slider = 80 }; |
default = { checked = false; slider = 70 }; |
disabled = { checked = false; slider = 70 }; |
setup = { |
sliderMin = 1; |
sliderMax = 80; |
sliderMax = 70; |
sliderStep = 1; |
sliderDisplayFunc = function(val) |
return val; |
Status = function() |
local active = LS_Color.Green(LS_ENABLED) |
local uihide = LS_Color.Green(LS_ENABLED) |
local closeall = LS_Color.Green(LS_ENABLED) |
if (LS_Options.Active == 0) then |
closeall = LS_Color.Red(LS_DISABLED) |
end |
LS_Out.Print("AddOn "..active..". "..string.format(LS_MINMAXSET2, LS_MINIMUM, LS_Color.Green(LS_Options.MinLevel)).." "..string.format(LS_MINMAXSET2, LS_MAXIMUM, LS_Color.Green(LS_Options.MaxLevel)).." "..string.format(LS_CLOSEALL, closeall)) |
LS_Out.Print("AddOn "..active..". "..string.format(LS_MINMAXSET2, LS_MINIMUM, LS_Color.Green(LS_Options.MinLevel)).." "..string.format(LS_MINMAXSET2, LS_MAXIMUM, LS_Color.Green(LS_Options.MaxLevel)).." "..string.format(LS_CLOSEALL, closeall).." "..string.format(LS_SHOWHIDE, uihide)) |
end; |
Version = function() |
-------------------------------------------------- |
-- localization.ru.lua (Russian) |
-- $LastChangedBy: Gryphon $ |
-- $Date: 2007-02-02 16:41:28 -0600 (Fri, 02 Feb 2007) $ |
-- Translation: |
if ( GetLocale() == "ruRU" ) then |
-- Please submit your translation to karlkfi@yahoo.com |
end |
-------------------------------------------------- |
-- localization.ru.lua (Russian) |
-- $LastChangedBy: Gryphon $ |
-- $Date: 2007-02-02 14:41:28 -0800 (Fri, 02 Feb 2007) $ |
-- Translation: |
if ( GetLocale() == "ruRU" ) then |
-- Please submit your translation to everyone@cosmosui.org |
end |
-------------------------------------------------- |
-- localization.es.lua (Spanish) |
-- $LastChangedBy: Gryphon $ |
-- $Date: 2007-02-02 16:41:28 -0600 (Fri, 02 Feb 2007) $ |
-- $Date: 2007-02-02 14:41:28 -0800 (Fri, 02 Feb 2007) $ |
-- Translation: NeKRoMaNT |
if ( GetLocale() == "esES" ) then |
-------------------------------------------------- |
-- localization.fr.lua (French) |
-- $LastChangedBy: Gryphon $ |
-- $Date: 2007-02-02 16:41:28 -0600 (Fri, 02 Feb 2007) $ |
-- $Date: 2007-02-02 14:41:28 -0800 (Fri, 02 Feb 2007) $ |
-- Translation: Vjeux, Sasmira |
if ( GetLocale() == "frFR" ) then |
## Interface: 30000 |
## Interface: 20400 |
## Title: Chronos |
## Notes: Embeddable Time Keeping and Scheduling System |
## Notes-deDE: Sammlung nützlicher Funktionen zum Zeitmanagement, welche von einigen anderen AddOns verwendet werden. |
## Author: Alexander Brazie, Thott, AnduinLothar |
## Version: 2.12 |
## X-Date: Oct 14 2008 |
## X-Category: Library |
## X-Website: http://www.wowinterface.com/downloads/info4328-Chronos.html |
## X-Email: karlkfi@yahoo.com |
## X-Localizations: enUS, deDE, frFR |
## X-CompatibleLocales: enUS, enGB, deDE, frFR |
## X-Website: http://www.cosmosui.org |
Chronos.xml |
-------------------------------------------------- |
-- localization.de.lua (German) |
-- $LastChangedBy: Gryphon $ |
-- $Date: 2007-02-02 16:41:28 -0600 (Fri, 02 Feb 2007) $ |
-- $Date: 2007-02-02 14:41:28 -0800 (Fri, 02 Feb 2007) $ |
-- Translation: pc, StarDust |
if ( GetLocale() == "deDE" ) then |
-------------------------------------------------- |
-- localization.tw.lua (Chinese Traditional) |
-- $LastChangedBy: Gryphon $ |
-- $Date: 2007-02-02 16:41:28 -0600 (Fri, 02 Feb 2007) $ |
-- Translation: |
if ( GetLocale() == "zhTW" ) then |
-- Please submit your translation to karlkfi@yahoo.com |
end |
-------------------------------------------------- |
-- localization.tw.lua (Chinese Traditional) |
-- $LastChangedBy: Gryphon $ |
-- $Date: 2007-02-02 14:41:28 -0800 (Fri, 02 Feb 2007) $ |
-- Translation: |
if ( GetLocale() == "zhTW" ) then |
-- Please submit your translation to everyone@cosmosui.org |
end |
-------------------------------------------------- |
-- localization.kr.lua (Korean) |
-- $LastChangedBy: Gryphon $ |
-- $Date: 2007-02-02 16:41:28 -0600 (Fri, 02 Feb 2007) $ |
-- Translation: |
if ( GetLocale() == "koKR" ) then |
-- Please submit your translation to karlkfi@yahoo.com |
end |
-------------------------------------------------- |
-- localization.kr.lua (Korean) |
-- $LastChangedBy: Gryphon $ |
-- $Date: 2007-02-02 14:41:28 -0800 (Fri, 02 Feb 2007) $ |
-- Translation: |
if ( GetLocale() == "koKR" ) then |
-- Please submit your translation to everyone@cosmosui.org |
end |
-------------------------------------------------- |
-- localization.cn.lua (Chinese) |
-- $LastChangedBy: Gryphon $ |
-- $Date: 2007-02-02 16:41:28 -0600 (Fri, 02 Feb 2007) $ |
-- Translation: |
if ( GetLocale() == "zhCN" ) then |
-- Please submit your translation to karlkfi@yahoo.com |
end |
-------------------------------------------------- |
-- localization.cn.lua (Chinese) |
-- $LastChangedBy: Gryphon $ |
-- $Date: 2007-02-02 14:41:28 -0800 (Fri, 02 Feb 2007) $ |
-- Translation: |
if ( GetLocale() == "zhCN" ) then |
-- Please submit your translation to everyone@cosmosui.org |
end |
-------------------------------------------------- |
-- localization.en.lua (English) |
-- $LastChangedBy: Gryphon $ |
-- $Date: 2007-02-02 16:41:28 -0600 (Fri, 02 Feb 2007) $ |
-- $Date: 2007-02-02 14:41:28 -0800 (Fri, 02 Feb 2007) $ |
-- Translation: |
-- Default Locale enGB |
-- - Put the Chronos folder inside your Interface/AddOns/ folder. |
-- - Add Chronos to the Dependencies in your toc |
-- |
-- Please see below or see http://www.wowwiki.com/Chronos_(addon) for details. |
-- Please see below or see http://www.wowwiki.com/Chronos for details. |
-- |
-- $LastChangedBy: karlkfi $ |
-- $Date: 2006-12-21 06:19:14 -0600 (Thu, 21 Dec 2006) $ |
-- $Date: 2006-12-21 04:19:14 -0800 (Thu, 21 Dec 2006) $ |
-- $Rev: 4467 $ |
-- |
--]] |
local CHRONOS_REV = 2.12; |
local CHRONOS_REV = 2.11; |
local isBetterInstanceLoaded = ( Chronos and Chronos.version and Chronos.version >= CHRONOS_REV ); |
local task; |
while(#ChronosData.sched > 0) do |
if (not ChronosData.sched[1].time) then |
--Sea.io.printTable(ChronosData.sched[1]); |
Sea.io.printTable(ChronosData.sched[1]); |
tremove(ChronosData.sched, 1); |
elseif(ChronosData.sched[1].time <= now) then |
task = tremove(ChronosData.sched, 1); |
while (k ~= nil) do |
newK,newV = next(ChronosData.byName, k); |
if (not v.time) then |
--Sea.io.printTable(v); |
Sea.io.printTable(v); |
ChronosData.byName[k] = nil; |
elseif (v.time <= now) then |
if (v.repeating) then |
## Interface: 30000 |
## Version: 1.4.1 |
## Interface: 20400 |
## Version: 1.31 |
## Title: LevelSnap |
## Notes: Automatically snaps a screen shot when you level. |
## Notes-zhCN: |
LS_DISABLED = "Disabled"; |
LS_VERSION = "Version"; |
LS_STATUS = "Status"; |
LS_HIDEUI = "Hide UI"; |
LS_CLOSEWIN = "Close Windows"; |
LS_MAXIMUM = "Maximum"; |
LS_MINMAXSET2 = "%s level set to %s."; |
LS_SHOWHIDE = "Automatically hide UI is %s."; |
LS_CLOSEALL = "Automatically close all windows %s."; |
LS_HELP_ONOFF = "Enable/Disable LevelSnap."; |
LS_HELP_MIN = "Set the minimum level in which LevelSnap is active."; |
LS_HELP_MAX = "Set the maximum level in which LevelSnap is active."; |
LS_HELP_CLOSEWIN = "Closes all open windows before LevelSnap takes a screen shot."; |
LS_HELP_UI = "Hides the UI when LevelSnap takes a screen shot."; |
LS_HELP_STATUS = "Displays current LevelSnap option settings."; |
LS_HELP_VERSION = "Displays version info."; |