Thread: DropDown Menus
View Single Post
06-08-14, 06:07 PM   #3
TULOA
A Wyrmkin Dreamwalker
 
TULOA's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2009
Posts: 50
Originally Posted by Torhal View Post
Have you consulted this guide?
Yes cant seem to adapt it to my needs... I dont populate it off a random or set generation like that and I dont pass a list. It needs to allow a table in place of "Games" and run through the table to set all the elements.

I tried to replace the elseif menuList == "Games" and make it instead:
Code:
else
    for a,b in pairs(menuList[2]) do
        info.func = menuList[1]
        info.text = menuList[2][a]
        UIDropDownMenu_AddButton(info, level)
    end
end
The above is a rough cut estimation of what I remember but is basically what I did. All it did was add to the end of the 1st level.