- fixes for cataclysm: added UNIT_POWER/UNIT_MAXPOWER event registrations in place of all the old power types, fixed mirror bar, targetinfo, and targetoftarget SetScripts to pass 'this' and 'arg#' around where necessary

- still broken for cata: GlobalCoolDown module, LibDogTag (needs to be fixed by one of its maintainers or I need to port to LuaTexts...fixing dogtag would be vastly easier), and Waterfall (not sure what to do about this one just yet)
This commit is contained in:
Parnic
2010-09-04 22:49:39 +00:00
parent 9ef8a4db51
commit 97d4a6898e
8 changed files with 84 additions and 53 deletions

View File

@ -391,7 +391,7 @@ function TargetOfTarget.prototype:CreateIconFrames(parent)
if (self.moduleSettings.mouse) then
buffs[i]:EnableMouse(true)
buffs[i]:SetScript("OnEnter", function() self:BuffOnEnter() end)
buffs[i]:SetScript("OnEnter", function(this) self:BuffOnEnter(this) end)
buffs[i]:SetScript("OnLeave", function() GameTooltip:Hide() end)
else
buffs[i]:EnableMouse(false)
@ -505,7 +505,7 @@ function TargetOfTarget.prototype:OnLeave(frame)
end
function TargetOfTarget.prototype:BuffOnEnter(type)
function TargetOfTarget.prototype:BuffOnEnter(this)
if (not this:IsVisible()) then
return
end