comparison KBF.lua @ 7:31048236391d

force a scan on login
author Chris Mellon <arkanes@gmai.com>
date Tue, 12 Oct 2010 18:37:59 -0500
parents bc661466f10c
children d0b83b70c7f8
comparison
equal deleted inserted replaced
6:bc661466f10c 7:31048236391d
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 self.anchor:SetScript("OnUpdate", function() self:OnUpdate() end) 20 self.anchor:SetScript("OnUpdate", function() self:OnUpdate() end)
21 self.dirty = true -- force an immediate scan on login
21 end 22 end
22 -- naming convention 23 -- naming convention
23 -- "frame" is the secure aura button created by the group handler 24 -- "frame" is the secure aura button created by the group handler
24 -- "bar" is the set of icon + status bars that we create to show the buff time 25 -- "bar" is the set of icon + status bars that we create to show the buff time
25 26
205 frame:SetAttribute("minWidth", 216) 206 frame:SetAttribute("minWidth", 216)
206 frame:SetAttribute("minHeight", 16) 207 frame:SetAttribute("minHeight", 16)
207 frame:SetAttribute("unit", "player") -- TODO: figure out the vehicle swapping stuff 208 frame:SetAttribute("unit", "player") -- TODO: figure out the vehicle swapping stuff
208 frame:SetAttribute("sortMethod", "NAME") 209 frame:SetAttribute("sortMethod", "NAME")
209 frame:SetAttribute("sortOrder", "-") 210 frame:SetAttribute("sortOrder", "-")
211 frame:SetAttribute("includeWeapons", 1)
210 frame:SetPoint("TOP", anchor, "BOTTOM", 0, 0) 212 frame:SetPoint("TOP", anchor, "BOTTOM", 0, 0)
211 -- frame:SetBackdrop({bgFile = "Interface/Tooltips/UI-Tooltip-Background", 213 -- frame:SetBackdrop({bgFile = "Interface/Tooltips/UI-Tooltip-Background",
212 -- edgeFile = "Interface/Tooltips/UI-Tooltip-Border", 214 -- edgeFile = "Interface/Tooltips/UI-Tooltip-Border",
213 -- tile = true, tileSize = 16, edgeSize = 16, 215 -- tile = true, tileSize = 16, edgeSize = 16,
214 -- insets = { left = 4, right = 4, top = 4, bottom = 4 }, 216 -- insets = { left = 4, right = 4, top = 4, bottom = 4 },