From 531396008cc5b8f007bd66c61ed08cd522e4eeff Mon Sep 17 00:00:00 2001 From: RealBadAngel Date: Sat, 1 Dec 2012 09:04:32 +0100 Subject: [PATCH] Formspec methods to display item images 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 | 97 ++++++++++++++++++++++++++++++++++++++--- src/guiFormSpecMenu.h | 6 +++ 3 files changed, 108 insertions(+), 5 deletions(-) diff --git a/doc/lua_api.txt b/doc/lua_api.txt index e32efc6df..f428e614c 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -694,6 +694,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 @@ -735,6 +739,12 @@ image_button[,;,;;;