From 6761ebdae574c8f76596c2cb7b25f9b79a26f651 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 10 Mar 2020 06:38:53 +0100 Subject: [PATCH] Fix shading of lower tabs in Creative inv. --- mods/HUD/mcl_inventory/creative.lua | 20 +++++++++--------- .../crafting_creative_active_down.png | Bin 0 -> 178 bytes .../crafting_creative_inactive_down.png | Bin 0 -> 177 bytes 3 files changed, 10 insertions(+), 10 deletions(-) create mode 100644 mods/HUD/mcl_inventory/textures/crafting_creative_active_down.png create mode 100644 mods/HUD/mcl_inventory/textures/crafting_creative_inactive_down.png diff --git a/mods/HUD/mcl_inventory/creative.lua b/mods/HUD/mcl_inventory/creative.lua index 4a449355a..d5b5e474b 100644 --- a/mods/HUD/mcl_inventory/creative.lua +++ b/mods/HUD/mcl_inventory/creative.lua @@ -209,13 +209,13 @@ hoch["rail"] = "" hoch["misc"] = "" hoch["nix"] = "" hoch["default"] = "" -hoch["food"] = "^[transformfy" -hoch["tools"] = "^[transformfy" -hoch["combat"] = "^[transformfy" -hoch["mobs"] = "^[transformfy" ---hoch["brew"] = "^[transformfy" -- TODO: add brew -hoch["matr"] = "^[transformfy" -hoch["inv"] = "^[transformfy" +hoch["food"] = "_down" +hoch["tools"] = "_down" +hoch["combat"] = "_down" +hoch["mobs"] = "_down" +--hoch["brew"] = "_down" -- TODO: add brew +hoch["matr"] = "_down" +hoch["inv"] = "_down" filtername = {} 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 bg_img if current_tab == this_tab then - bg_img = "crafting_creative_active.png" + bg_img = "crafting_creative_active"..hoch[this_tab]..".png" else - bg_img = "crafting_creative_inactive.png" + bg_img = "crafting_creative_inactive"..hoch[this_tab]..".png" end return "style["..this_tab..";border=false;bgimg=;bgimg_pressed=]".. "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]" end local caption = "" diff --git a/mods/HUD/mcl_inventory/textures/crafting_creative_active_down.png b/mods/HUD/mcl_inventory/textures/crafting_creative_active_down.png new file mode 100644 index 0000000000000000000000000000000000000000..f24d0472484c0287dc1c5a4584fda58c425560aa GIT binary patch literal 178 zcmeAS@N?(olHy`uVBq!ia0y~yV8~`*U`S$NW?*1gI?v!c0|NtpfKP}kLw?SM3l|s| z82kZlDYrklSn#p}HV00000NkvXXu0mjf7jiwD literal 0 HcmV?d00001