From 8271092d42a7576161537edbbb7418d70b6ba0ed Mon Sep 17 00:00:00 2001 From: omicron Date: Thu, 16 Mar 2023 05:18:30 +0100 Subject: [PATCH] Fix the menu action on non-player frames --- src/types/unitframe.lua | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/types/unitframe.lua b/src/types/unitframe.lua index 2d53514..560b380 100644 --- a/src/types/unitframe.lua +++ b/src/types/unitframe.lua @@ -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