1
0
Fork 0

Fix creative inv tabs showing item tooltips.

hammers_spears
MysticTempest 2023-10-08 10:38:19 -05:00 committed by Mikita Wiśniewski
parent 312ad5b63b
commit 57409973b9
1 changed files with 26 additions and 14 deletions

View File

@ -542,7 +542,6 @@ function mcl_inventory.set_creative_formspec(player)
"style[" .. this_tab .. ";border=false;bgimg=;bgimg_pressed=;noclip=true]", "style[" .. this_tab .. ";border=false;bgimg=;bgimg_pressed=;noclip=true]",
"image[" .. offset[this_tab] .. ";1.5,1.44;" .. bg_img .. "]", "image[" .. offset[this_tab] .. ";1.5,1.44;" .. bg_img .. "]",
"item_image_button[" .. boffset[this_tab] .. ";1,1;" .. tab_icon[this_tab] .. ";" .. this_tab .. ";]", "item_image_button[" .. boffset[this_tab] .. ";1,1;" .. tab_icon[this_tab] .. ";" .. this_tab .. ";]",
"tooltip[blocks;" .. F(filtername[this_tab]) .. "]"
}) })
end end
@ -571,20 +570,33 @@ function mcl_inventory.set_creative_formspec(player)
listrings, listrings,
tab(name, "blocks"), tab(name, "blocks") ..
tab(name, "deco"), "tooltip[blocks;"..F(filtername["blocks"]).."]"..
tab(name, "redstone"), tab(name, "deco") ..
tab(name, "rail"), "tooltip[deco;"..F(filtername["deco"]).."]"..
tab(name, "misc"), tab(name, "redstone") ..
tab(name, "nix"), "tooltip[redstone;"..F(filtername["redstone"]).."]"..
tab(name, "rail") ..
"tooltip[rail;"..F(filtername["rail"]).."]"..
tab(name, "misc") ..
"tooltip[misc;"..F(filtername["misc"]).."]"..
tab(name, "nix") ..
"tooltip[nix;"..F(filtername["nix"]).."]"..
tab(name, "food"), tab(name, "food") ..
tab(name, "tools"), "tooltip[food;"..F(filtername["food"]).."]"..
tab(name, "combat"), tab(name, "tools") ..
tab(name, "mobs"), "tooltip[tools;"..F(filtername["tools"]).."]"..
tab(name, "brew"), tab(name, "combat") ..
tab(name, "matr"), "tooltip[combat;"..F(filtername["combat"]).."]"..
tab(name, "inv"), tab(name, "mobs") ..
"tooltip[mobs;"..F(filtername["mobs"]).."]"..
tab(name, "brew") ..
"tooltip[brew;"..F(filtername["brew"]).."]"..
tab(name, "matr") ..
"tooltip[matr;"..F(filtername["matr"]).."]"..
tab(name, "inv") ..
"tooltip[inv;"..F(filtername["inv"]).."]"
}) })
if name == "nix" then if name == "nix" then