Modifications for Clique support

This commit is contained in:
iceroth
2006-09-11 12:03:16 +00:00
parent 5e7eaf9366
commit 6e52c0c5fd
3 changed files with 8 additions and 7 deletions

View File

@ -201,7 +201,7 @@ function TargetInfo.prototype:CreateTextFrame()
self.frame.target.unit = target -- for blizz default tooltip handling
self.frame.target:RegisterForClicks("LeftButtonUp", "RightButtonUp")
self.frame.target:SetScript("OnClick", function() self:TargetOnClick(arg1) end)
self.frame.target:SetScript("OnClick", function() self:OnClick(arg1) end)
self.frame.target:SetScript("OnEnter", function() UnitFrame_OnEnter() end)
self.frame.target:SetScript("OnLeave", function() UnitFrame_OnLeave() end)
@ -596,7 +596,7 @@ end
function TargetInfo.prototype:TargetOnClick(button)
function TargetInfo.prototype:OnClick(button)
-- copy&paste from blizz code, it better work ;)
if (SpellIsTargeting() and button == "RightButton") then
SpellStopTargeting()
@ -628,5 +628,6 @@ function TargetInfo.prototype:BuffOnEnter(type)
end
end
-- Load us up
TargetInfo:new()
IceHUD_TargetInfo = TargetInfo:new()