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

@ -922,13 +922,6 @@ function PlayerHealth.prototype:CreateBackground(redraw)
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
self:EnableClickTargeting(self.moduleSettings.allowMouseInteraction)
end
@ -962,7 +955,7 @@ function PlayerHealth.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

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

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