From 88d43af276a4ed85500863b427bf370d8eca2095 Mon Sep 17 00:00:00 2001 From: sapier Date: Sun, 7 Jul 2013 15:53:40 -0400 Subject: Fix many formspec menu bugs --- doc/lua_api.txt | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 5a2fdf102..daef00d8b 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -960,11 +960,21 @@ textlist[,;,;;,,...,] ^Scrollabel itemlist showing arbitrary text elements ^ x and y position the itemlist relative to the top left of the menu ^ w and h are the size of the itemlist -^ listelements can be prepended by #RRGGBB in hexadecimal format +^ name fieldname sent to server on doubleclick value is current selected element +^ listelements can be prepended by #colorkey (see colorkeys), ^ if you want a listelement to start with # write ## + +textlist[,;,;;,,...,;;] +^Scrollabel itemlist showing arbitrary text elements +^ 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 doubleclick value is current selected element +^ listelements can be prepended by #RRGGBB in hexadecimal format +^ if you want a listelement to start with # write ## +^ index to be selected within textlist +^ true/false draw transparent background -tabheader[,;;,;;;] +tabheader[,;;,,...,;;;] ^ show a tabHEADER at specific position (ignores formsize) ^ x and y position the itemlist relative to the top left of the menu ^ name fieldname data is transfered to lua @@ -977,8 +987,19 @@ box[,;,;] ^ simple colored semitransparent box ^ x and y position the box relative to the top left of the menu ^ w and h are the size of box +^ colorkey (see colorkeys) + +dropdown[,;;;,, ...,;] +^ show a dropdown field +^ x and y position of dropdown +^ width of dropdown +^ fieldname data is transfered to lua +^ items to be shown in dropdown +^ index of currently selected dropdown item ^ color in hexadecimal format RRGGBB +Note: do NOT use a element name starting with "key_" those names are reserved to +pass key press events to formspec! Inventory location: -- cgit v1.2.3