Fix the menu action on non-player frames

This commit is contained in:
2023-03-16 05:18:30 +01:00
parent c0446ad8be
commit 8271092d42

View File

@@ -164,26 +164,8 @@ function UnitFrame:CreateSecureFrame(width, height)
self:SetSpellAction("type-alt-wheel-down", "Earth Shield")
-- Shift
secure:SetAttribute("SHIFT-type2", "menu")
secure:SetAttribute("SHIFT-type2", "togglemenu")
if self.unit == "player" then
secure.menu = function(self)
ToggleDropDownMenu(1, nil, PlayerFrameDropDown, "cursor", 0 ,0)
end
elseif self.unit == "target" then
secure.menu = function(self)
ToggleDropDownMenu(1, nil, TargetFrameDropDown, "cursor", 0 ,0)
end
elseif self.unit == "focus" then
secure.menu = function(self)
ToggleDropDownMenu(1, nil, FocusFrameDropDown, "cursor", 0 ,0)
end
elseif self.unit:match("party%d") == self.unit then
--secure.menu = function(self)
-- ToggleDropDownMenu(1, nil, FriendsFrameDropDown, "cursor", 0 ,0)
--end
end
return secure
end