mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
Fix shading of lower tabs in Creative inv.
This commit is contained in:
parent
60effa71b4
commit
6761ebdae5
3 changed files with 10 additions and 10 deletions
|
@ -209,13 +209,13 @@ hoch["rail"] = ""
|
||||||
hoch["misc"] = ""
|
hoch["misc"] = ""
|
||||||
hoch["nix"] = ""
|
hoch["nix"] = ""
|
||||||
hoch["default"] = ""
|
hoch["default"] = ""
|
||||||
hoch["food"] = "^[transformfy"
|
hoch["food"] = "_down"
|
||||||
hoch["tools"] = "^[transformfy"
|
hoch["tools"] = "_down"
|
||||||
hoch["combat"] = "^[transformfy"
|
hoch["combat"] = "_down"
|
||||||
hoch["mobs"] = "^[transformfy"
|
hoch["mobs"] = "_down"
|
||||||
--hoch["brew"] = "^[transformfy" -- TODO: add brew
|
--hoch["brew"] = "_down" -- TODO: add brew
|
||||||
hoch["matr"] = "^[transformfy"
|
hoch["matr"] = "_down"
|
||||||
hoch["inv"] = "^[transformfy"
|
hoch["inv"] = "_down"
|
||||||
|
|
||||||
filtername = {}
|
filtername = {}
|
||||||
filtername["blocks"] = S("Building Blocks")
|
filtername["blocks"] = S("Building Blocks")
|
||||||
|
@ -378,14 +378,14 @@ mcl_inventory.set_creative_formspec = function(player, start_i, pagenum, inv_siz
|
||||||
local function tab(current_tab, this_tab)
|
local function tab(current_tab, this_tab)
|
||||||
local bg_img
|
local bg_img
|
||||||
if current_tab == this_tab then
|
if current_tab == this_tab then
|
||||||
bg_img = "crafting_creative_active.png"
|
bg_img = "crafting_creative_active"..hoch[this_tab]..".png"
|
||||||
else
|
else
|
||||||
bg_img = "crafting_creative_inactive.png"
|
bg_img = "crafting_creative_inactive"..hoch[this_tab]..".png"
|
||||||
end
|
end
|
||||||
return
|
return
|
||||||
"style["..this_tab..";border=false;bgimg=;bgimg_pressed=]"..
|
"style["..this_tab..";border=false;bgimg=;bgimg_pressed=]"..
|
||||||
"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..";]"..
|
||||||
"image[" .. offset[this_tab] .. ";1.5,1.44;" .. bg_img .. hoch[this_tab].. "]" ..
|
"image[" .. offset[this_tab] .. ";1.5,1.44;" .. bg_img .. "]" ..
|
||||||
"image[" .. boffset[this_tab] .. ";1,1;crafting_creative_marker.png]"
|
"image[" .. boffset[this_tab] .. ";1,1;crafting_creative_marker.png]"
|
||||||
end
|
end
|
||||||
local caption = ""
|
local caption = ""
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 178 B |
Binary file not shown.
After Width: | Height: | Size: 177 B |
Loading…
Reference in a new issue