View Single Post
04-09-13, 03:29 PM   #8
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
You didn't actually post the code that's adding that spawnMenu function, but basically you can replace that whole part with:

Code:
if unit:match("^raid") then
    frame:SetAttribute("type2", "menu")
else
    frame:SetAttribute("type2", "togglemenu")
end
You don't need to write your own function to toggle the menu anymore.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote