Mercurial > wow > kbf
comparison KBF.lua @ 8:d0b83b70c7f8
add code to hide the blizz frames. Currently commented
author | Chris Mellon <arkanes@gmai.com> |
---|---|
date | Tue, 12 Oct 2010 18:58:24 -0500 |
parents | 31048236391d |
children | ede17cc71b66 |
comparison
equal
deleted
inserted
replaced
7:31048236391d | 8:d0b83b70c7f8 |
---|---|
15 self.anchor:Show() | 15 self.anchor:Show() |
16 self:RegisterEvent("UNIT_AURA") | 16 self:RegisterEvent("UNIT_AURA") |
17 -- set up the countdown timer | 17 -- set up the countdown timer |
18 -- TODO: Fancy enable/disable based on whether you have any timed buffs. | 18 -- TODO: Fancy enable/disable based on whether you have any timed buffs. |
19 -- Not a big deal, how often do you care about that | 19 -- Not a big deal, how often do you care about that |
20 -- also TODO: Maybe should bucket OnUpdates somehow | |
20 self.anchor:SetScript("OnUpdate", function() self:OnUpdate() end) | 21 self.anchor:SetScript("OnUpdate", function() self:OnUpdate() end) |
21 self.dirty = true -- force an immediate scan on login | 22 self.dirty = true -- force an immediate scan on login |
23 --self:HideBlizzardBuffFrames() | |
22 end | 24 end |
23 -- naming convention | 25 -- naming convention |
24 -- "frame" is the secure aura button created by the group handler | 26 -- "frame" is the secure aura button created by the group handler |
25 -- "bar" is the set of icon + status bars that we create to show the buff time | 27 -- "bar" is the set of icon + status bars that we create to show the buff time |
28 | |
29 function kbf:HideBlizzardBuffFrames() | |
30 local function HideBlizFrame(frame) | |
31 if not frame then return end | |
32 frame:UnregisterAllEvents() | |
33 frame:SetScript("OnUpdate", nil) | |
34 frame:Hide() | |
35 frame.Show = function() end | |
36 end | |
37 HideBlizFrame(BuffFrame) | |
38 HideBlizFrame(ConsolidatedBuffs) | |
39 HideBlizFrame(TemporaryEnchantFrame) | |
40 | |
41 end | |
26 | 42 |
27 function kbf:OnUpdate() | 43 function kbf:OnUpdate() |
28 for idx=1,99 do | 44 for idx=1,99 do |
29 local frame = self.secureFrame:GetAttribute("child"..idx) | 45 local frame = self.secureFrame:GetAttribute("child"..idx) |
30 if not frame then break end | 46 if not frame then break end |