From 6e52c0c5fd854dcc75dd1f2dcf1db612ff1e9301 Mon Sep 17 00:00:00 2001 From: iceroth Date: Mon, 11 Sep 2006 12:03:16 +0000 Subject: [PATCH] Modifications for Clique support --- IceHUD.toc | 4 ++-- modules/TargetInfo.lua | 7 ++++--- modules/TargetOfTarget.lua | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/IceHUD.toc b/IceHUD.toc index 689c4b8..701f787 100644 --- a/IceHUD.toc +++ b/IceHUD.toc @@ -3,9 +3,9 @@ ## Name: IceHUD ## Title: IceHUD |cff7fff7f -Ace2-|r ## Notes: Another HUD mod -## Version: 0.6.3 ($Revision$) +## Version: 0.6.4 ($Revision$) ## SavedVariables: IceCoreDB -## OptionalDeps: Ace2, DewdropLib, FuBar_ToFu, DruidBar, SoleManax, MobHealth +## OptionalDeps: Ace2, DewdropLib, FuBar_ToFu, DruidBar, SoleManax, MobHealth, SpellStatusLib ## X-Category: UnitFrame ## X-Date: $Date$ ## X-eMail: iceroth@iceroth.net diff --git a/modules/TargetInfo.lua b/modules/TargetInfo.lua index 9d8a76e..466a6b0 100644 --- a/modules/TargetInfo.lua +++ b/modules/TargetInfo.lua @@ -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() diff --git a/modules/TargetOfTarget.lua b/modules/TargetOfTarget.lua index 2b1bf51..1010e4f 100644 --- a/modules/TargetOfTarget.lua +++ b/modules/TargetOfTarget.lua @@ -332,10 +332,10 @@ function TargetOfTarget.prototype:OnClick(button) TargetUnit(self.unit) end else - ToggleDropDownMenu(1, nil, TargetFrameDropDown, "cursor") + TargetUnit(self.unit) end end -- load us up -TargetOfTarget:new() +IceHUD_TargetOfTarget = TargetOfTarget:new()