Remove all the old right-click menu hackery

Evidently this isn't needed anymore on any current client, 11.x, Classic-era, et al.
This commit is contained in:
Parnic
2024-07-25 22:32:29 -05:00
parent e94138d201
commit b17582afab
4 changed files with 3 additions and 249 deletions

View File

@ -1150,7 +1150,7 @@ do -- OVERRIDE: IceTargetInfo.prototype:CreateFrame(redraw)
self.frame:SetScript("OnLeave", function(frame) self:OnLeave(frame) end)
self.frame:SetAttribute("type1", "target")
self.frame:SetAttribute("type2", UnitPopup_ShowMenu and "menu" or "togglemenu")
self.frame:SetAttribute("type2", "togglemenu")
-- set up click casting
ClickCastFrames = ClickCastFrames or {}
@ -1173,13 +1173,6 @@ do -- OVERRIDE: IceTargetInfo.prototype:CreateFrame(redraw)
self.frame:SetAttribute("unit", self.unit)
if not self.frame.menu and UnitPopup_ShowMenu then
self.frame.menu = function(this, unit)
IceHUD.DropdownUnit = unit
ToggleDropDownMenu(1, nil, IceHUD_UnitFrame_DropDown, "cursor")
end
end
-- create a fancy highlight frame for mouse over
if (not self.frame.highLight) then