From 36424e3dec018ba3ed02784d20668e25c086e90a Mon Sep 17 00:00:00 2001 From: Uberi Date: Mon, 16 Dec 2013 18:55:56 -0500 Subject: Improve worldedit.spiral and the WorldEdit GUI, --- worldedit_gui/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'worldedit_gui/init.lua') diff --git a/worldedit_gui/init.lua b/worldedit_gui/init.lua index 8e3b352..abcc134 100644 --- a/worldedit_gui/init.lua +++ b/worldedit_gui/init.lua @@ -1,4 +1,3 @@ ---wip: make back buttons images in all screens --wip: support unified_inventory, it even seems to have some sort of API now --wip: make it look good with image buttons and stuff @@ -114,6 +113,9 @@ worldedit.register_gui_function("worldedit_gui", { end end end + if index == 0 then --empty row + y = y - height + end return string.format("size[%g,%g]", math.max(columns * width, 5), math.max(y + 0.5, 3)) .. (inventory_plus and "button[0,0;2,0.5;main;Back]" or "button_exit[0,0;2,0.5;main;Exit]") .. "label[2,0;WorldEdit GUI]" .. -- cgit v1.2.3