mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
Modifications for Clique support
This commit is contained in:
@ -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
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
Reference in New Issue
Block a user