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:
parent
f2914b3d4f
commit
2d6a0ed606
@ -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
|
||||
|
@ -136,7 +136,7 @@ unified_inventory.register_button("clear_inv", {
|
||||
unified_inventory.register_page("craft", {
|
||||
get_formspec = function(player, formspec)
|
||||
local player_name = player:get_player_name()
|
||||
local formspec = "background[0,"..unified_inventory.formspec_y..";8,3;ui_crafting_form.png]"
|
||||
local formspec = "background[2,"..unified_inventory.formspec_y..";6,3;ui_crafting_form.png]"
|
||||
formspec = formspec.."background[0,"..(unified_inventory.formspec_y + 3.5)..";8,4;ui_main_inventory.png]"
|
||||
formspec = formspec.."label[0,"..unified_inventory.form_header_y..";Crafting]"
|
||||
formspec = formspec.."listcolors[#00000000;#00000000]"
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 4.3 KiB |
BIN
textures/ui_single_slot.png
Normal file
BIN
textures/ui_single_slot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 988 B |
Loading…
Reference in New Issue
Block a user