From 8e5167d72622dec428477a7fff529b7dbc974106 Mon Sep 17 00:00:00 2001 From: RealBadAngel Date: Thu, 8 Nov 2012 19:22:37 +0100 Subject: [PATCH] Adding background to Formspec --- doc/lua_api.txt | 5 +++++ src/guiFormSpecMenu.cpp | 45 +++++++++++++++++++++++++++++++++++++++-- src/guiFormSpecMenu.h | 1 + 3 files changed, 49 insertions(+), 2 deletions(-) diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 3018326..500b514 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -694,6 +694,11 @@ image[,;,;] ^ Show an image ^ Position and size units are inventory slots +background[,;,;] +^ Use a background. Inventory rectangles are not drawn then. +^ Position and size units are inventory slots +^ Example for formspec 8x4 in 16x resolution: image shall be sized 8*16px x 4*16px + field[,;,;;