mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
Fix popup menu replacement code error on 11.0.2 (temp)
This removes the menu replacement code that is preventing errors when trying to focus someone or dismiss a pet through a right-click menu on an addon. There is a new API, UnitPopup_OpenMenu, that is a replacement for ShowMenu, but it's not a drop-in replacement, so until I have access to the beta or an 11.0.2 PTR there's not much I can do here.
This commit is contained in:
23
IceHUD.lua
23
IceHUD.lua
@ -1010,17 +1010,20 @@ if UnitPopupFrames then
|
|||||||
end
|
end
|
||||||
|
|
||||||
IceHUD.DropdownUnit = nil
|
IceHUD.DropdownUnit = nil
|
||||||
UIDropDownMenu_Initialize(IceHUD_UnitFrame_DropDown, function()
|
-- todo: update for new UnitPopup_OpenMenu() API
|
||||||
if not IceHUD.DropdownUnit then
|
if UnitPopup_ShowMenu then
|
||||||
return
|
UIDropDownMenu_Initialize(IceHUD_UnitFrame_DropDown, function()
|
||||||
end
|
if not IceHUD.DropdownUnit then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
local menu, id = figure_unit_menu(IceHUD.DropdownUnit)
|
local menu, id = figure_unit_menu(IceHUD.DropdownUnit)
|
||||||
if menu then
|
if menu then
|
||||||
menu = IceHUD.MungeUnitMenu(menu)
|
menu = IceHUD.MungeUnitMenu(menu)
|
||||||
UnitPopup_ShowMenu(IceHUD_UnitFrame_DropDown, menu, IceHUD.DropdownUnit, nil, id)
|
UnitPopup_ShowMenu(IceHUD_UnitFrame_DropDown, menu, IceHUD.DropdownUnit, nil, id)
|
||||||
end
|
end
|
||||||
end, "MENU", nil)
|
end, "MENU", nil)
|
||||||
|
end
|
||||||
|
|
||||||
function IceHUD:OutOfCombatWrapper(func)
|
function IceHUD:OutOfCombatWrapper(func)
|
||||||
return function(...)
|
return function(...)
|
||||||
|
Reference in New Issue
Block a user