From 26b7babbbde0aaa3f2cf2b382c82bbefe8388c81 Mon Sep 17 00:00:00 2001 From: yaroot Date: Mon, 6 Dec 2010 16:54:52 +0800 Subject: [PATCH] clean up --- Cenote.toc | 3 +-- core.lua | 17 ++--------------- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/Cenote.toc b/Cenote.toc index 7fc510f..6215614 100644 --- a/Cenote.toc +++ b/Cenote.toc @@ -2,8 +2,7 @@ ## Title: Cenote ## Notes: Add timer to the build-in spell alert ## Author: yleaf -#### SavedVariables: CenoteDB -## Version: 4.0.3.1-beta +## Version: 4.0.3.1 core.lua diff --git a/core.lua b/core.lua index b50d127..99cebf6 100644 --- a/core.lua +++ b/core.lua @@ -23,17 +23,9 @@ OTHER DEALINGS IN THE SOFTWARE. ]===] ---local L = setmetatable({}, {__index=function(t, i) return i end}) local Cenote = LibStub('AceAddon-3.0'):NewAddon('Cenote') local debug ---local db ---local defaults = { --- profile = { --- enabled = true, --- }, ---} - local complexLocationTable = { ['RIGHT (FLIPPED)'] = 'RIGHT', ['BOTTOM (FLIPPED)'] = 'BOTTOM', @@ -48,10 +40,6 @@ function Cenote:OnInitialize() end or function() end debug'OnLoad' - --self.db = LibStub("AceDB-3.0"):New('CenoteDB', defaults, UnitName'player' .. '-' .. GetRealmName()) - --db = self.db.profile - - --self:SetupOption() self.timers = {} self.SAFrame = SpellActivationOverlayFrame @@ -94,7 +82,6 @@ function Cenote:SPELL_ACTIVATION_OVERLAY_SHOW(spellID, texture, position, scale, self:Remove(f) end end - end function Cenote:SPELL_ACTIVATION_OVERLAY_HIDE(spellID) @@ -149,7 +136,7 @@ do f:SetPoint(f.realPosition, self.SAFrame) f:Show() - f.nextUpdate = 0 + --f.nextUpdate = 0 update(f) f:SetScript('OnUpdate', update) end @@ -180,7 +167,7 @@ end local r, g, b, m = 1, .1, .1, .7 local font = QuestFont_Large:GetFont() function Cenote:CreateTimer() - --debug'OnCreateTimer' + debug'CreateTimer' local f = CreateFrame('Frame', nil, self.SAFrame) tinsert(self.timers, f) f:SetWidth(2) -- 1.7.9.5