From 28438bba27168289be59a26d3ae55e3f3658d8d3 Mon Sep 17 00:00:00 2001 From: BlockMen Date: Fri, 3 Oct 2014 06:11:21 +0200 Subject: Add [colorize modifier --- doc/lua_api.txt | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 4db0dc40f..131a63fa5 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -262,6 +262,10 @@ Advanced texture modifiers: Apply a mask to the base image. The mask is applied using binary AND. + [colorize: + Colorize the textures with given color + as ColorString + Sounds ------- Only OGG Vorbis files are supported. @@ -985,16 +989,16 @@ list[;;,;,;] ^ Show an inventory list listcolors[;] -^ Sets background color of slots in HEX-Color format +^ Sets background color of slots as ColorString ^ Sets background color of slots on mouse hovering listcolors[;;] -^ Sets background color of slots in HEX-Color format +^ Sets background color of slots as ColorString ^ Sets background color of slots on mouse hovering ^ Sets color of slots border listcolors[;;;;] -^ Sets background color of slots in HEX-Color format +^ Sets background color of slots as ColorString ^ Sets background color of slots on mouse hovering ^ Sets color of slots border ^ Sets default background color of tooltips @@ -1002,8 +1006,8 @@ listcolors[;;;;;;,] ^ Adds tooltip for an element -^ tooltip background color in HEX-Color format (optional) -^ tooltip font color in HEX-Color format (optional) +^ tooltip background color as ColorString (optional) +^ tooltip font color as ColorString (optional) image[,;,;] @@ -1015,7 +1019,7 @@ item_image[,;,;] ^ Position and size units are inventory slots bgcolor[;] -^ Sets background color of formspec in HEX-Color format +^ Sets background color of formspec as ColorString ^ If true the background color is drawn fullscreen (does not effect the size of the formspec) background[,;,;] @@ -1136,7 +1140,7 @@ 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 -^ color in HEX-Color format +^ color as ColorString dropdown[,;;;,, ...,;] ^ show a dropdown field @@ -1182,15 +1186,15 @@ table[,;,;;,,...,;] tableoptions[;;...] ^ sets options for table[]: ^ color=#RRGGBB -^^ default text color (HEX-Color), defaults to #FFFFFF +^^ default text color (ColorString), defaults to #FFFFFF ^ background=#RRGGBB -^^ table background color (HEX-Color), defaults to #000000 +^^ table background color (ColorString), defaults to #000000 ^ border= ^^ should the table be drawn with a border? (default true) ^ highlight=#RRGGBB -^^ highlight background color (HEX-Color), defaults to #466432 +^^ highlight background color (ColorString), defaults to #466432 ^ highlight_text=#RRGGBB -^^ highlight text color (HEX-Color), defaults to #FFFFFF +^^ highlight text color (ColorString), defaults to #FFFFFF ^ opendepth= ^^ all subtrees up to depth < value are open (default value = 0) ^^ only useful when there is a column of type "tree" @@ -1200,7 +1204,7 @@ tablecolumns[,,,...;,,;...] ^ types: text, image, color, indent, tree ^^ text: show cell contents as text ^^ image: cell contents are an image index, use column options to define images -^^ color: cell contents are a HEX-Color and define color of following cell +^^ color: cell contents are a ColorString 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: @@ -1231,8 +1235,8 @@ Inventory location: - "nodemeta:,,": Any node metadata - "detached:": A detached inventory -HEX-Color ---------- +ColorString +----------- #RGB ^ defines a color in hexadecimal format #RGBA -- cgit v1.2.3