Dealing with the formatting and returned values for gfx.showmenu is pretty gross, especially if separators or nested menus are involved.
Could maybe accept a set of nested tables for the menus, possible even with values to return for each option. (Similar to Menubar's setup for the menus and options)
Once we have a module, the Menubox and Menubar classes could use it, as well as anything else that calls showmenu.
Dealing with the formatting and returned values for gfx.showmenu is pretty gross, especially if separators or nested menus are involved.
Could maybe accept a set of nested tables for the menus, possible even with values to return for each option. (Similar to Menubar's setup for the menus and options)
Once we have a module, the Menubox and Menubar classes could use it, as well as anything else that calls showmenu.