forked from Mineclonia/Mineclonia
Remove scroll background in survival inv. in C.M.
This commit is contained in:
parent
2ba58c782a
commit
9c6998946f
|
@ -195,11 +195,13 @@ crafting.set_creative_formspec = function(player, start_i, pagenum, show, page,
|
||||||
|
|
||||||
if page ~= nil then name = page end
|
if page ~= nil then name = page end
|
||||||
bg[name] = "crafting_creative_bg.png"
|
bg[name] = "crafting_creative_bg.png"
|
||||||
|
local inv_bg = "crafting_inventory_creative.png"
|
||||||
if name == "inv" then
|
if name == "inv" then
|
||||||
-- Survival inventory slots
|
-- Survival inventory slots
|
||||||
main_list = "image[-0.2,1.7;11.35,2.33;crafting_creative_bg.png]"..
|
main_list = "image[-0.2,1.7;11.35,2.33;crafting_creative_bg.png]"..
|
||||||
"list[current_player;main;0,3.75;9,3;9]"
|
"list[current_player;main;0,3.75;9,3;9]"
|
||||||
else
|
else
|
||||||
|
inv_bg = inv_bg .. "^crafting_inventory_creative_scroll.png"
|
||||||
-- Creative inventory slots
|
-- Creative inventory slots
|
||||||
main_list = "list[detached:creative;main;0,1.75;9,5;"..tostring(start_i).."]" ..
|
main_list = "list[detached:creative;main;0,1.75;9,5;"..tostring(start_i).."]" ..
|
||||||
-- ... and scroll bar
|
-- ... and scroll bar
|
||||||
|
@ -218,7 +220,7 @@ crafting.set_creative_formspec = function(player, start_i, pagenum, show, page,
|
||||||
end
|
end
|
||||||
formspec = "size[10,9.3]"..
|
formspec = "size[10,9.3]"..
|
||||||
default.inventory_header..
|
default.inventory_header..
|
||||||
"background[-0.19,-0.25;10.5,9.87;crafting_inventory_creative.png]"..
|
"background[-0.19,-0.25;10.5,9.87;"..inv_bg.."]"..
|
||||||
"label[-5,-5;"..name.."]"..
|
"label[-5,-5;"..name.."]"..
|
||||||
"item_image_button[-0.1,0;1,1;default:brick;blocks;]".. --build blocks
|
"item_image_button[-0.1,0;1,1;default:brick;blocks;]".. --build blocks
|
||||||
tab(name, "blocks") ..
|
tab(name, "blocks") ..
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 7.9 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.2 KiB |
Loading…
Reference in New Issue