Fix incorrect background colors over inventory slots
caused by BlockMen's/kahrl's inventory #hexcolor patch
( 25edae00ea
)
This commit is contained in:
parent
2b5bf5fe95
commit
ee93afd439
2
bags.lua
2
bags.lua
@ -12,6 +12,7 @@ unified_inventory.register_page("bags", {
|
|||||||
formspec = formspec.."button[2,2;2,0.5;bag2;Bag 2]"
|
formspec = formspec.."button[2,2;2,0.5;bag2;Bag 2]"
|
||||||
formspec = formspec.."button[4,2;2,0.5;bag3;Bag 3]"
|
formspec = formspec.."button[4,2;2,0.5;bag3;Bag 3]"
|
||||||
formspec = formspec.."button[6,2;2,0.5;bag4;Bag 4]"
|
formspec = formspec.."button[6,2;2,0.5;bag4;Bag 4]"
|
||||||
|
formspec = formspec.."listcolors[#00000000;#00000000]"
|
||||||
formspec = formspec.."list[detached:"..player_name.."_bags;bag1;0.5,1;1,1;]"
|
formspec = formspec.."list[detached:"..player_name.."_bags;bag1;0.5,1;1,1;]"
|
||||||
formspec = formspec.."list[detached:"..player_name.."_bags;bag2;2.5,1;1,1;]"
|
formspec = formspec.."list[detached:"..player_name.."_bags;bag2;2.5,1;1,1;]"
|
||||||
formspec = formspec.."list[detached:"..player_name.."_bags;bag3;4.5,1;1,1;]"
|
formspec = formspec.."list[detached:"..player_name.."_bags;bag3;4.5,1;1,1;]"
|
||||||
@ -31,6 +32,7 @@ for i = 1, 4 do
|
|||||||
local stack = player:get_inventory():get_stack("bag"..i, 1)
|
local stack = player:get_inventory():get_stack("bag"..i, 1)
|
||||||
local image = stack:get_definition().inventory_image
|
local image = stack:get_definition().inventory_image
|
||||||
local formspec = "image[7,0;1,1;"..image.."]"
|
local formspec = "image[7,0;1,1;"..image.."]"
|
||||||
|
formspec = formspec.."listcolors[#00000000;#00000000]"
|
||||||
formspec = formspec.."list[current_player;bag"..i.."contents;0,1;8,3;]"
|
formspec = formspec.."list[current_player;bag"..i.."contents;0,1;8,3;]"
|
||||||
local slots = stack:get_definition().groups.bagslots
|
local slots = stack:get_definition().groups.bagslots
|
||||||
if slots == 8 then
|
if slots == 8 then
|
||||||
|
@ -32,6 +32,7 @@ function unified_inventory.get_formspec(player, page)
|
|||||||
|
|
||||||
if fsdata.draw_inventory ~= false then
|
if fsdata.draw_inventory ~= false then
|
||||||
-- Player inventory
|
-- Player inventory
|
||||||
|
formspec = formspec.."listcolors[#00000000;#00000000]"
|
||||||
formspec = formspec .. "list[current_player;main;0,4.5;8,4;]"
|
formspec = formspec .. "list[current_player;main;0,4.5;8,4;]"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -121,6 +121,7 @@ unified_inventory.register_page("craft", {
|
|||||||
local formspec = "background[0,1;8,3;ui_crafting_form.png]"
|
local formspec = "background[0,1;8,3;ui_crafting_form.png]"
|
||||||
formspec = formspec.."background[0,4.5;8,4;ui_main_inventory.png]"
|
formspec = formspec.."background[0,4.5;8,4;ui_main_inventory.png]"
|
||||||
formspec = formspec.."label[0,0;Crafting]"
|
formspec = formspec.."label[0,0;Crafting]"
|
||||||
|
formspec = formspec.."listcolors[#00000000;#00000000]"
|
||||||
formspec = formspec.."list[current_player;craftpreview;6,1;1,1;]"
|
formspec = formspec.."list[current_player;craftpreview;6,1;1,1;]"
|
||||||
formspec = formspec.."list[current_player;craft;2,1;3,3;]"
|
formspec = formspec.."list[current_player;craft;2,1;3,3;]"
|
||||||
formspec = formspec.."label[7,2.5;Trash:]"
|
formspec = formspec.."label[7,2.5;Trash:]"
|
||||||
@ -139,6 +140,7 @@ unified_inventory.register_page("craftguide", {
|
|||||||
local formspec = "background[0,1;8,3;ui_craftguide_form.png]"
|
local formspec = "background[0,1;8,3;ui_craftguide_form.png]"
|
||||||
formspec = formspec.."background[0,4.5;8,4;ui_main_inventory.png]"
|
formspec = formspec.."background[0,4.5;8,4;ui_main_inventory.png]"
|
||||||
formspec = formspec.."label[0,0;Crafting Guide]"
|
formspec = formspec.."label[0,0;Crafting Guide]"
|
||||||
|
formspec = formspec.."listcolors[#00000000;#00000000]"
|
||||||
formspec = formspec.."list[detached:"..player_name.."craftrecipe;output;6,1;1,1;]"
|
formspec = formspec.."list[detached:"..player_name.."craftrecipe;output;6,1;1,1;]"
|
||||||
formspec = formspec.."label[6,3.35;Method:]"
|
formspec = formspec.."label[6,3.35;Method:]"
|
||||||
local item_name = unified_inventory.current_item[player_name]
|
local item_name = unified_inventory.current_item[player_name]
|
||||||
|
Loading…
Reference in New Issue
Block a user