From fdbb380812d381b3060da4329c3781e25d37d080 Mon Sep 17 00:00:00 2001 From: RealBadAngel Date: Sat, 1 Dec 2012 18:36:42 +0100 Subject: [PATCH] New elements in formspec, item_image and item_image_button. Fixed also game bug drawing dragged item behind fields, buttons etc. --- doc/lua_api.txt | 10 +++++ src/guiFormSpecMenu.cpp | 94 ++++++++++++++++++++++++++++++++++++++--- src/guiFormSpecMenu.h | 4 ++ 3 files changed, 101 insertions(+), 7 deletions(-) diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 08619b72a..60d1b2cb9 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -697,6 +697,10 @@ image[,;,;] ^ Show an image ^ Position and size units are inventory slots +item_image[,;,;] +^ Show an inventory image of registered item/node +^ Position and size units are inventory slots + background[,;,;] ^ Use a background. Inventory rectangles are not drawn then. ^ Position and size units are inventory slots @@ -738,6 +742,12 @@ image_button[,;,;;;