Rather than inventing your own special table format, just use the existing EasyMenu format as described in the thread Torhal linked (scroll down to post #4). It allows you to pass your table directly to the menu system.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
|