eh ok but how would a go about solving this issue? Removing the rightclick option entirely?
This is the code i have:
Code:
-- Right Click Menu
lib.spawnMenu = function(self)
local unit = self.unit:sub(1, -2)
local cunit = self.unit:gsub("^%l", string.upper)
if(cunit == "Vehicle") then
cunit = "Pet"
end
if(unit == "party") then
ToggleDropDownMenu(1, nil, _G["PartyMemberFrame"..self.id.."DropDown"], "cursor", 0, 0)
elseif(_G[cunit.."FrameDropDown"]) then
ToggleDropDownMenu(1, nil, _G[cunit.."FrameDropDown"], "cursor", 0, 0)
elseif unit == "raid" then
FriendsDropDown.unit = self.unit
FriendsDropDown.id = self.id
FriendsDropDown.initialize = RaidFrameDropDown_Initialize
ToggleDropDownMenu(1,nil,FriendsDropDown,"cursor")
end
end
and this i think:S
Code:
-- The Shared Style Function
local GlobalStyle = function(self, unit, isSingle)
self.menu = lib.spawnMenu
self:RegisterForClicks('AnyDown')
-- Call Unit Specific Styles
if(UnitSpecific[unit]) then
return UnitSpecific[unit](self)
end
end
-- The Shared Style Function for Party and Raid
local GroupGlobalStyle = function(self, unit)
self.menu = lib.spawnMenu
self:RegisterForClicks('AnyDown')
-- Call Unit Specific Styles
if(UnitSpecific[unit]) then
return UnitSpecific[unit](self)
end
end