Mercurial > wow > kbf
changeset 79:8c8416ec4aca tip
merge in mop branch with nomial raid buff support
author | Chris Mellon <arkanes@gmail.com> |
---|---|
date | Sat, 01 Dec 2012 15:46:30 -0600 |
parents | 814974be3fec (current diff) 2acabfca1305 (diff) |
children | |
files | |
diffstat | 1 files changed, 25 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/KBF.lua Sat Dec 01 10:34:52 2012 -0600 +++ b/KBF.lua Sat Dec 01 15:46:30 2012 -0600 @@ -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)