comparison KBF.lua @ 14:1cee96433b0f

disable the blizz buff frame by default now, leave the temp buffs
author Chris Mellon <arkanes@gmai.com>
date Wed, 13 Oct 2010 11:35:40 -0500
parents be6c10697c59
children 0c5e210221c9
comparison
equal deleted inserted replaced
13:be6c10697c59 14:1cee96433b0f
14 -- TODO: Fancy enable/disable based on whether you have any timed buffs. 14 -- TODO: Fancy enable/disable based on whether you have any timed buffs.
15 -- Not a big deal, how often do you care about that 15 -- Not a big deal, how often do you care about that
16 -- also TODO: Maybe should bucket OnUpdates somehow 16 -- also TODO: Maybe should bucket OnUpdates somehow
17 self.anchor:SetScript("OnUpdate", function() self:OnUpdate() end) 17 self.anchor:SetScript("OnUpdate", function() self:OnUpdate() end)
18 self.dirty = true -- force an immediate scan on login 18 self.dirty = true -- force an immediate scan on login
19 --self:HideBlizzardBuffFrames() 19 self:HideBlizzardBuffFrames()
20 end 20 end
21 -- naming convention 21 -- naming convention
22 -- "frame" is the secure aura button created by the group handler 22 -- "frame" is the secure aura button created by the group handler
23 -- "bar" is the set of icon + status bars that we create to show the buff time 23 -- "bar" is the set of icon + status bars that we create to show the buff time
24 24
30 frame:Hide() 30 frame:Hide()
31 frame.Show = function() end 31 frame.Show = function() end
32 end 32 end
33 HideBlizFrame(BuffFrame) 33 HideBlizFrame(BuffFrame)
34 HideBlizFrame(ConsolidatedBuffs) 34 HideBlizFrame(ConsolidatedBuffs)
35 HideBlizFrame(TemporaryEnchantFrame) 35 --HideBlizFrame(TemporaryEnchantFrame)
36 36
37 end 37 end
38 38
39 function kbf:OnUpdate() 39 function kbf:OnUpdate()
40 local unit = self.secureFrame:GetAttribute("unit") 40 local unit = self.secureFrame:GetAttribute("unit")