tableoptions[;;...] ^ Options: ^ color=#RRGGBB ^^ default text color (hex), defaults to #FFFFFF ^ background=#RRGGBB ^^ table background color (hex), defaults to #000000 ^ background_alpha=#AA ^^ table background alpha (hex), defaults to #FF ^ border= ^^ should the table be drawn with a border? (default true) ^ highlight=#RRGGBB ^^ highlight background color (hex), defaults to #466432 ^ highlight_alpha=#AA ^^ highlight background alpha (hex), defaults to #FF ^ highlight_text=#RRGGBB ^^ highlight text color (hex), defaults to #FFFFFF ^ opendepth= ^^ all subtrees up to depth < N are open (default N = 0) ^^ only useful when there is a column of type "tree" tablecolumns[,,,...;,,;...] ^ Types: text, image, color, indent, tree ^^ text: show cell contents as visible text ^^ image: cell contents are an image index, use column options to define images ^^ color: cell contents are #RRGGBB and define color of following cell ^^ indent: cell contents are a number and define indentation of following cell ^^ tree: same as indent, but user can open and close subtrees (treeview-like) ^ Column options: ^^ align= for "text" and "image": content alignment within cells ^^ available alignments: left (default), center, right, inline ^^ width= for "text" and "image": minimum width in em (default W=0) ^^ for "indent" and "tree": indent width in em (default W=1.5) ^^ padding= padding left of the column, in em (default W=0.5) ^^ tooltip= tooltip text (default empty) ^ "image" column options: ^^ 0= sets image for image index 0 ^^ 1= sets image for image index 1 ^^ 2= sets image for image index 2 ^^ and so on; note that defined indices need not be contiguous ^^ empty or non-numeric cells are treated as 0 ^ "color" column options: ^^ span= color is valid for the N following columns (default N = infinite) table[,;,;;,,...,;] ^Scrollable table using options defined by the last tableoptions[] ^Displays cells as defined by the last tablecolumns[] ^ x and y position the itemlist relative to the top left of the menu ^ w and h are the size of the itemlist ^ name fieldname sent to server on row select or doubleclick ^ cell 1...n cell contents given in row-major order ^ selected idx: index of row to be selected within table (first row = 1) ^ Use minetest.explode_table_event (engine.explode_table_event in mainmenu) ^ to parse a table event gotten through on_receive_fields or similar means minetest.explode_table_event(evt) -> table ^ Parses a table event gotten through on_receive_fields or similar means ^ Note that all row and column indices are 1 based; 0 indicates an error ^ Input: INV ^^ Output: {type="INV", row=0, column=0} ^^ Indicates that no row is selected ^ Input: CHG:: ^^ Output: {type="CHG", row=, column=} ^^ Indicates that row got selected in the table ^^ If row got selected by clicking, is the column that was clicked. ^^ Otherwise, is 0. ^ Input: DCL:: ^^ Output: {type="DCL", row=, column=} ^^ Indicates that row , column was double-clicked. ^^ Also sent when Return or Space is pressed, in this case is 0. EXAMPLE 1: Credits tab (newlines are just for readability) tableoptions[background_alpha=0,border=false] tablecolumns[color;text] table[3.5,-0.25;8.5,5.8;list_credits; #FFFF00,Core Developers, ,Perttu Ahola (celeron55), ,..., ,, #FFFF00,Active Contributors, ,sapier, ,..., ,, #FFFF00,Previous Contributors, ,Guiseppe Bilotta (Oblomov), ,..., ,;0] EXAMPLE 2: Configure world dialog tablecolumns[ color; tree; image,align=inline, 0=checkbox_off.png, 1=checkbox_on.png, 2=checkbox_onoff.png, 3=empty.png; text] table[5.5,0.5;5.5,5.75;world_config_modlist; #00DD00,0,1,ambience, #003300,0,2,minetest-mod-mesecons (32), #00DD00,1,1,mesecons, #00DD00,1,1,mesecons_alias, #00DD00,1,0,mesecons_blinkyplant, #00DD00,1,1,..., #00DD00,1,1,mesecons_walllever, #AAAAAA,0,0,modpack (2), #AAAAAA,1,0,nested_modpack (2), ,2,0,nested_mod_1, ,2,0,nested_mod_2, ,0,0,moreores, ,0,0,sandjoy, #0000DD,0,3,Game mods (16), #0000DD,1,3,bones, #0000DD,1,3,bucket, #0000DD,1,3,creative, #0000DD,1,3,default, #0000DD,1,3,..., #0000DD,1,3,wool, #0000DD,0,3,World mods (0);0] EXAMPLE 3: Serverlist tablecolumns[ image,1=creative.png,tooltip=Creative mode?; image,1=heart.png,tooltip=Damage enabled?; image,1=pvp.png;tooltip=PvP allowed?; text,align=right,tooltip=Current players / Maximum players; text] table[5.5,0.5;5.5,5.75;world_config_modlist; 1,1,1,12/30,LandRush Server, 0,1,1,3/100,86.149.73.243:30000, 1,1,0,2/32,LinuxGaming.us, 0,1,1,1/20,sfan5's Survival Server, 0,1,1,1/100,LotsFun Test server, 0,1,1,1/100,0gb.us's simple server, 0,1,0,1/12,Clip Minetest server, 1,0,0,0/20,creative;0]