Fix the menu action on non-player frames
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user