From f4b7e1a5707850aad9f6c122c05de4d2f9ede074 Mon Sep 17 00:00:00 2001 From: RealBadAngel Date: Sat, 1 Dec 2012 18:36:42 +0100 Subject: 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 | 90 ++++++++++++++++++++++++++++++++++++++++++++++--- src/guiFormSpecMenu.h | 4 +++ 3 files changed, 99 insertions(+), 5 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[,;,;;;