New config window item -> arrays.

Posted by Mymyc on Fri 11 Dec 2009 02:50 PM — 3 posts, 14,659 views.

#0
We can edit existing variables clicking on game menu->configure->variables or tapping Shift+Ctrl+7. We can add, edit, remove and search there etc.

What about (LUA) arrays?

It would be so wonderful add/show/edit/search/fill up with data arrays the same way!

Isn't?

Just my 2 cents...
Amended on Fri 11 Dec 2009 02:55 PM by Mymyc
Australia Forum Administrator #1
Yes, well Lua arrays can be arrays of arrays, or arrays of functions. These would be hard or impossible to represent inside the GUI. Also they can be self-referential, which would also be a big problem to display.

eg.

 
t = {}  -- make a table
t [1] = t   -- table contains itself



I usually use the "tprint" function to display arrays, as that shows nested tables, and is quite easy to read.
USA #2
On the other hand, it would be quite nice to be able to edit MUSH arrays from the GUI.