Here is a somewhat fixed up function I made to display tables fancily. It draws out "cells" in which the table values are displayed, has the option to have a "title" for the table, with a configurable number of columns, column width, and colors for data values, title, and "frame". If no width is given, it defaults to just big enough to show the largest data value.
If a keyed table is used, both keys and values are displayed, with keys adjacent to their values. If the data table contains a table, that item will be shown with the values concatenated together, surrounded by curly brackets. There are some obvious restrictions on what this will actually display, but it will definitely handle a fairly wide range of normal tables.
Share your scripts and packages with other Mudlet users.
1 post • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 3 guests