1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2025-06-30 15:10:45 +02:00

Improve worldedit.spiral and the WorldEdit GUI,

This commit is contained in:
Uberi
2013-12-16 18:55:56 -05:00
parent 3cffae4948
commit 36424e3dec
3 changed files with 131 additions and 72 deletions

View File

@ -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]" ..