View Single Post
Old 11-29-2019, 08:24 AM   #615
reapero
Human being with feelings
 
Join Date: Aug 2011
Posts: 522
Default

I am trying to populate a menubox with presets that are actually keys on a given section of a the exts-state.ini file. So the latest options of the opts parameter need to be given programtically.

After getting the keynames from Extsate i end up with a string like this:

Code:
preset_list = '"preset1","preset2","preset3"'

GUI.New("Preset_menubox", "Menubox", {
    z = 11,
    x = 500,
    y = 128,
    w = 128,
    h = 20,
    caption = "",
    optarray = {"PRESETS...","Save","Delete",">Load", preset_list },

This doesnt create 3 options at the end but just a long one with all the quotes. I guess this was a very dirty approach...

Is there anything i can do?
reapero is offline   Reply With Quote