Hello, currently i work on my addon and want create a contex menu für Right click on the minimap button. But if i set the "MENU" Argument in the UIDropDownMenu_Initialize function Nothing is showing up any more. This is my current code
-- create the rightclikc contex menu
function LFGHelper_MiniMenue_Initial(self,level,menuList)
local info = UIDropDownMenu_CreateInfo();
print(level);
if level == 1 then
info.text = "LFG Helper Options";
info.isTitle = true;
UIDropDownMenu_AddButton(info);
end
end
local LFGHelper_MiniMenue = CreateFrame("Frame", "Test_DropDown", UIParent, "UIDropDownMenuTemplate");
UIDropDownMenu_SetWidth(LFGHelper_MiniMenue, 200)
UIDropDownMenu_Initialize(LFGHelper_MiniMenue, LFGHelper_MiniMenue_Initial, "MENU");
Hello, currently i work on my addon and want create a contex menu für Right click on the minimap button. But if i set the "MENU" Argument in the UIDropDownMenu_Initialize function Nothing is showing up any more. This is my current code
with this function i toggle it