comparison KBF.lua @ 47:afd410b949ea

use the slot name on the bar for weapon enchants, guess at a fix for an error with OOC scheduling
author Chris Mellon <arkanes@gmail.com>
date Sat, 12 Mar 2011 08:34:52 -0600
parents 04d0d145a676
children ae92a56133ad
comparison
equal deleted inserted replaced
46:04d0d145a676 47:afd410b949ea
147 self:UpdateBarExpirationTime(tempEnchant) 147 self:UpdateBarExpirationTime(tempEnchant)
148 buffCount = buffCount + 1 148 buffCount = buffCount + 1
149 -- SAH binds the offhand enchant to the main hand for removal purposes. 149 -- SAH binds the offhand enchant to the main hand for removal purposes.
150 -- fix it up if we're out of combat 150 -- fix it up if we're out of combat
151 -- TODO: maybe this should only happen if we're dirty 151 -- TODO: maybe this should only happen if we're dirty
152 self:QueueForOOC(function() tempEnchant:SetAttribute('target-slot', 17) end) 152 self:QueueForOOC(function() self.secureHeader:GetAttribute("tempEnchant2"):SetAttribute('target-slot', 17) end)
153 end 153 end
154 if ( tempEnchant and GameTooltip:IsOwned(tempEnchant) ) then 154 if ( tempEnchant and GameTooltip:IsOwned(tempEnchant) ) then
155 self:OnEnter(tempEnchant) 155 self:OnEnter(tempEnchant)
156 end 156 end
157 -- make a fake third buff bar. It can't be used to cancel the buff, but 157 -- make a fake third buff bar. It can't be used to cancel the buff, but
297 -- TODO: Maybe want to leave it as the weapon icon? 297 -- TODO: Maybe want to leave it as the weapon icon?
298 -- I don't think theres enough room to add both the name of the weapon & the buff in there 298 -- I don't think theres enough room to add both the name of the weapon & the buff in there
299 -- maybe use the tag? 299 -- maybe use the tag?
300 -- Or maybe use the slot name, ie Flametongue / Main Hand 300 -- Or maybe use the slot name, ie Flametongue / Main Hand
301 name, _, _ = GetSpellInfo(spellId) 301 name, _, _ = GetSpellInfo(spellId)
302 local slots = {[16] = "Main Hand", [17] = "Off Hand", [18] = "Thrown"}
303 name = name .. " (" .. slots[slot] .. ")"
302 break 304 break
303 end 305 end
304 end 306 end
305 end 307 end
306 parentFrame.spellId = spellId 308 parentFrame.spellId = spellId