From 1709fd854a2d943de8cc48ee1e092dcb4315f9a6 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 3 Jun 2012 17:18:08 +0300 Subject: [PATCH] Implement image[,;,;] and allow floating-point values in formspec --- doc/lua_api.txt | 7 ++- src/game.cpp | 5 ++- src/guiInventoryMenu.cpp | 92 ++++++++++++++++++++++++++-------------- src/guiInventoryMenu.h | 32 +++++++++++--- 4 files changed, 94 insertions(+), 42 deletions(-) diff --git a/doc/lua_api.txt b/doc/lua_api.txt index d994fab7c..4321bf76e 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -604,6 +604,12 @@ Examples: list[current_name;src;2,1;1,1;] list[current_name;dst;5,1;2,2;] list[current_player;main;0,5;8,4;] +- Minecraft-like player inventory + invsize[8,7.5;] + image[1,0.6;1,2;player.png] + list[current_player;main;0,3.5;8,4;] + list[current_player;craft;3,0;3,3;] + list[current_player;craftpreview;7,1;1,1;] Elements: @@ -616,7 +622,6 @@ list[;;,;,;] image[,;,;] ^ Show an image ^ Position and size units are inventory slots -^ Not implemented field[,;,;;