Mercurial > wow > kbf
changeset 44:81cade22f2f9
add instant/wound/deadly poison support
author | Chris Mellon <arkanes@gmail.com> |
---|---|
date | Sun, 13 Feb 2011 08:55:58 -0600 |
parents | a5d47fbede83 |
children | ca720b4b5435 |
files | .hgtags .pkgmeta KBF.lua KBF.toc KBF.xml README embeds.xml |
diffstat | 1 files changed, 17 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/KBF.lua Tue Jan 18 22:38:13 2011 -0600 +++ b/KBF.lua Sun Feb 13 08:55:58 2011 -0600 @@ -136,7 +136,6 @@ end -- make a fake third buff bar. It can't be used to cancel the buff, but -- at least you can see it. - local thirdWeaponInfo = select(7, GetWeaponEnchantInfo()) if thirdWeaponInfo then if not self.tempEnchant3 then @@ -145,7 +144,21 @@ self.tempEnchant3:SetWidth(200+16) self.tempEnchant3:SetHeight(16) self.tempEnchant3:Show() + self.tempEnchant3:SetScript("OnEnter", function() kbf:OnEnter(self.tempEnchant3) end) + self.tempEnchant3:SetScript("OnLeave", function() GameTooltip:Hide() end) + self.tempEnchant3:EnableMouse(true) + --TODO: queue up for setting when leaving combat + self.tempEnchant3:SetAttribute('target-slot', 18) + -- set up the tooltip end + -- TODO: If we're out of combat and theres an OH enchant, + -- create a secure action button & position it relative + -- to that. What happens when the OH weapon enchant frame + -- is hidden by SAH? + -- most likely: it stays visible but stops moving. + -- in this case, maybe parent it to the OH enchant also + -- so it vanishes and gets out of the way. + self.tempEnchant3:Show() end if self.tempEnchant3 and not thirdWeaponInfo then @@ -250,6 +263,9 @@ local knownEnchants = { ["Flametongue"] = {8024, 30*60}, ["Frostbrand"] = {8033, 30*60}, + ["Instant Poison"] = {8680, 60*60}, + ["Wound Poison"] = {13218, 60*60}, + ["Deadly Poison"] = {2823, 60*60}, } local spellId = nil