polemarque_ wrote:Works fine. thanks !!!
PS : can you tell me what you change between the two version of the widget (original VS yours)
AreaMex adds it's commands to widgetHandler.customCommands table, which is used by some default layout handlers.
RedUI sets layout handler with "widgetHandler:ConfigLayoutHandler(dummylayouthandler)", and "dummylayouthandler" should return something like "menuName, xIcons, yIcons, removeCmds, customCmds, onlyTexCmds, reTexCmds, reNamedCmds, reTooltipCmds, reParamsCmds, iconList", what it actually returns is
Code: Select all
return "", xIcons, yIcons, {}, {}, {}, {}, {}, {}, {}, iconList
so it doesn't grabs widgetHandler.customCommands and passes them on, always passing an empty table for these.
Dunno if it's done intentionally, so widgets won't mess the interface with their buttons, or if it's just some oversight (that might be already fixed in later RedUI versions).
I've changed it like that:
Code: Select all
local custom_cmdz = widgetHandler.customCommands
return "", xIcons, yIcons, {}, custom_cmdz, {}, {}, {}, {}, {}, iconList
fixing the problem.