Hi - I had a request to make one of my extensions compatible with Better Menus. I added the addMenuItem call like this:
It works, but it ends up adding two menu entries. Did I do something wrong?Code:function onTabletopInit()
if Session.IsHost then
local tButton = { sIcon = "FF_Icon", tooltipres = "FF_title", class = "fishing_tournament_window", path = DB_ROOT };
DesktopManager.registerSidebarToolButton(tButton, 8);
if MenuManager then
MenuManager.addMenuItem("fishing_tournament_window", DB_ROOT, "Open the Fishing Fun UI", "Fishing Fun");
end
end
end
Attachment 66624
Not sure if it matters, but this is for 5E.

