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

@ -713,13 +713,6 @@ function IceTargetHealth.prototype:CreateBackground(redraw)
self.frame.button:SetPoint("BOTTOMRIGHT", self.frame, "BOTTOMRIGHT", -1 * self.frame:GetWidth() / 1.5, 0)
end
end
if not self.frame.button.menu and UnitPopup_ShowMenu then
self.frame.button.menu = function(this, unit)
IceHUD.DropdownUnit = unit
ToggleDropDownMenu(1, nil, IceHUD_UnitFrame_DropDown, "cursor")
end
end
end
end
@ -733,7 +726,7 @@ function IceTargetHealth.prototype:EnableClickTargeting(bEnable)
self.frame.button:EnableMouse(true)
self.frame.button:RegisterForClicks("AnyUp")
self.frame.button:SetAttribute("type1", "target")
self.frame.button:SetAttribute("type2", UnitPopup_ShowMenu and "menu" or "togglemenu")
self.frame.button:SetAttribute("type2", "togglemenu")
self.frame.button:SetAttribute("unit", self.unit)
-- set up click casting