From 6aa05460ca731d516057951b3b7047dca0c596aa Mon Sep 17 00:00:00 2001 From: Tuller Date: Tue, 26 Apr 2011 19:48:03 -0400 Subject: [PATCH] toc bump --- cc.lua | 20 +++++++++++--------- tullaCC.toc | 6 +++--- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/cc.lua b/cc.lua index 93fe0f2..9696a25 100644 --- a/cc.lua +++ b/cc.lua @@ -6,15 +6,24 @@ and also for people who don't care about the extra features of OmniCC --]] ---constants! +--hacks! OmniCC = OmniCC or true --hack to work around detection from other addons for OmniCC + +--local bindings! +local C = select(2, ...) --pull in the addon table +local UIParent = _G['UIParent'] +local GetTime = _G['GetTime'] +local floor = math.floor +local min = math.min +local round = function(x) return floor(x + 0.5) end + +--sexy constants! local ICON_SIZE = 36 --the normal size for an icon (don't change this) local DAY, HOUR, MINUTE = 86400, 3600, 60 --used for formatting text local DAYISH, HOURISH, MINUTEISH = 3600 * 23.5, 60 * 59.5, 59.5 --used for formatting text at transition points local HALFDAYISH, HALFHOURISH, HALFMINUTEISH = DAY/2 + 0.5, HOUR/2 + 0.5, MINUTE/2 + 0.5 --used for calculating next update times --configuration settings -local C = select(2, ...) --pull in the addon table local FONT_FACE = C.fontFace --what font to use local FONT_SIZE = C.fontSize --the base font size to use at a scale of 1 local MIN_SCALE = C.minScale--the minimum scale we want to show cooldown counts at, anything below this will be hidden @@ -26,12 +35,6 @@ local MINUTES_FORMAT = C.minutesFormat --format for timers that have minutes rem local HOURS_FORMAT = C.hoursFormat --format for timers that have hours remaining local DAYS_FORMAT = C.daysFormat --format for timers that have days remaining ---local bindings! -local floor = math.floor -local min = math.min -local round = function(x) return floor(x + 0.5) end -local GetTime = GetTime - --returns both what text to display, and how long until the next update local function getTimeText(s) --format text as seconds when at 90 seconds or below @@ -54,7 +57,6 @@ local function getTimeText(s) end end - local function Timer_SetNextUpdate(self, nextUpdate) self.updater:GetAnimations():SetDuration(nextUpdate) if self.updater:IsPlaying() then diff --git a/tullaCC.toc b/tullaCC.toc index 9dba652..7fedd1d 100644 --- a/tullaCC.toc +++ b/tullaCC.toc @@ -1,7 +1,7 @@ -## Interface: 40000 -## Title: tullaCooldownCount +## Interface: 40100 +## Title: tullaCooldownCount ## Notes: Adds text to cooldowns ## Author: Tuller -## Version: 2.2 +## Version: 2.3 config.lua cc.lua \ No newline at end of file -- 1.7.9.5