split ui_crafting_form

into craft grid/trash image and a single slot image.  The latter is now
used for a refill slot if user has creative priv or server is in
creative mode.
This commit is contained in:
Vanessa Ezekowitz
2015-08-05 08:37:25 -04:00
parent f2914b3d4f
commit 2d6a0ed606
4 changed files with 5 additions and 1 deletions

View File

@ -32,6 +32,10 @@ function unified_inventory.get_formspec(player, page)
formspec = formspec .. "background[-0.19,-0.2;11.4,8.4;ui_form_bg.png]"
end
if unified_inventory.is_creative(player_name) and page == "craft" then
formspec = formspec.."background[0,"..(unified_inventory.formspec_y + 2)..";1,1;ui_single_slot.png]"
end
local fsdata = nil
-- Current page