jalovatt / scythe

Lua GUI library and utility framework for Reaper scripts (formerly Lokasenna_GUI)
https://jalovatt.github.io/scythe
MIT License
26 stars 6 forks source link

gfx.showmenu processing #91

Closed jalovatt closed 5 years ago

jalovatt commented 5 years ago

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.