Mercurial > wow > kbf
changeset 77:2acabfca1305 mop
basic raid buff support (just x/y label)
author | Chris Mellon <arkanes@gmail.com> |
---|---|
date | Sun, 01 Jul 2012 12:59:38 -0500 |
parents | c11b3dc5a5a6 |
children | 8c8416ec4aca |
files | KBF.lua |
diffstat | 1 files changed, 25 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/KBF.lua Sat Jun 30 18:53:31 2012 -0500 +++ b/KBF.lua Sun Jul 01 12:59:38 2012 -0500 @@ -125,6 +125,22 @@ end end buffCount = buffCount+1 + if self.dirty then + -- update raid buff text + local numBufs = 0 + local buffmask, buffcount = GetRaidBuffInfo(); + if not (buffmask == nil) then + mask = 1; + for i=1,NUM_LE_RAID_BUFF_TYPES do + local name, rank, texture, duration, expiration, spellId, slot = GetRaidBuffTrayAuraInfo(i); + if name then + numBufs = numBufs + 1; + end + mask = bit.lshift(mask, 1); + end + self.consolidateProxy.text:SetText("Raid Buffs "..numBufs.."/"..max(numBufs,buffcount)); + end + end end -- SAH correctly binds the weapon enchant templates now, but when temp enchants @@ -465,6 +481,15 @@ consolidateProxy:SetWidth(200 +16) consolidateProxy:SetHeight(16) secureHeader:SetAttribute("consolidateProxy", consolidateProxy) + -- text for showing raid buffs + consolidateProxy.text = consolidateProxy:CreateFontString(nil, "OVERLAY") + consolidateProxy.text:SetFontObject(GameFontHighlight) + consolidateProxy.text:SetFont(GameFontHighlight:GetFont()) + consolidateProxy.text:SetPoint("LEFT", consolidateProxy, "LEFT", 2, 0) + consolidateProxy.text:SetJustifyH("LEFT") + consolidateProxy.text:SetText("raidbuffs") + consolidateProxy.text:SetTextColor(1,1,1,1) + --secureHeader:SetFrameRef("proxy", consolidateProxy)