Save in your data file. Simply run by loading using the exec command ( exec data/DynamicMenu.cfg ). The menu is called AllMaps. So either load this in your own menu or type /showgui AllMaps in the console command.
To Set up in Menu:
Find Maps gui
under the newgui maps [ type
guibutton "All Maps.." "showgui AllMaps" "cube"
guibar
It will appear as an option on your loadmap menu.
update March 18 2010: completely redone, checked all spelling errors and grammar errors. Used the fileloop command to load maps. Add update command, and auto update. Autoupdate checks to see if any new file have been put in the package/base . Update is a manual function that does the same on click. The reason for this, is that a loop command every frame might slow down some computers. So if this runs slow turn this off. :)
update March 27, 2010:
Removed auto update, cuz it does not work.
Added update so it does not refresh but uses the guistayopen command, so it does not pop out and in.
Revised April 1, 2010:
fix errors:
cannot find alias p and allmaps
simple fix, an over site on the logic side of my if statement ooops :)
update Oct 20, 2010:
added new menu type (side scroll)
fixed errors
removed auto update due to slowness
Humble Master
chasester
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\\ //\\//\\ $arg1 array \\\\\\\\\///////// \ /////\\\\\ $arg2 column in tab \\\\\\//\\////// / ////\\//\\\\ $arg3 items in collum \\\\\\\/////// \ ///////\\\\\\\ $arg4 menu name:0= void \\\\//\\//// / //////\\//\\\\\\ $arg5 command on click \\\\\///// \ /////////\\\\\\\\\ $arg6 icon to load \\//\\// / ///////\\//\\\\\\\\\ $arg7 the max items \\\/// \ ///\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\///