Prior to WoW 8.0.1, the syntax of UIDropDownMenu_AddSeparator is:
Lua Code:
UIDropDownMenu_AddSeparator(info, level)
Depends on how you use the info and how you re-use it, it may bring some issue once you call UIDropDownMenu_AddSeparator as it will also manipulate the info values.
For example, UIDropDownMenu_AddSeparator() will set info.isTitle to true. And if your next menu item did not reset info.isTitle to nil then you will run into trouble.
After WoW 8.0.1, the function call has been changed to:
Lua Code:
UIDropDownMenu_AddSeparator(level)
So you don't need to worry about passing info array to it as it make no sense.
Make sure you revise your code to remove info while calling UIDropDownMenu_AddSeparator.
And if you are adding separator to level 1 of your menu, you can simply call UIDropDownMenu_AddSeparator() without feeding any value to it.
Below you can see the full details of the function:
Lua Code:
local separatorInfo
function UIDropDownMenu_AddSeparator(level)
if not separatorInfo then
separatorInfo = {
hasArrow = false;
dist = 0;
isTitle = true;
isUninteractable = true;
notCheckable = true;
iconOnly = true;
icon = "Interface\\Common\\UI-TooltipDivider-Transparent";
tCoordLeft = 0;
tCoordRight = 1;
tCoordTop = 0;
tCoordBottom = 1;
tSizeX = 0;
tSizeY = 8;
tFitDropDownSizeX = true;
iconInfo = {
tCoordLeft = 0,
tCoordRight = 1,
tCoordTop = 0,
tCoordBottom = 1,
tSizeX = 0,
tSizeY = 8,
tFitDropDownSizeX = true
},
};
end
UIDropDownMenu_AddButton(separatorInfo, level);
end