Originally Posted by Torhal
|
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.