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 4a449355..d5b5e474 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!ia0vp^*+87c!VDyr&NKK9r1%4TLR=a0b1q!C0ObAu|34!m zBlLnOE0Duj666=m;PC858jus{>Eakt!T9#9BX2_h&w&d{jVz4GHOwsBpVxD8rf?ts z_Ae;m_H4%ehBv?7i47Aqn(3o9`D6-&+BfNBN~PRYU1m0&hM38cYfkcPiax-dy!Djn T{Wdi_py3Rju6{1-oD!M<*9Sb| literal 0 HcmV?d00001 diff --git a/mods/HUD/mcl_inventory/textures/crafting_creative_inactive_down.png b/mods/HUD/mcl_inventory/textures/crafting_creative_inactive_down.png new file mode 100644 index 0000000000000000000000000000000000000000..c117b5dc5aeab22b1c4c0aed898fce6a3cc0a6be GIT binary patch literal 177 zcmeAS@N?(olHy`uVBq!ia0vp^*+87c!VDyr&NKK9q=W)|LR|BUa)HeM|NqaOJ2xXE z7srqa#w3XZ1Fn`SQ+gTSo^|9sz`$|zg4YA} zGlD|T;!msS6y&|vk2MQ6n(3o9`LF8alPO@<$&|`_H>Wi*Yb(^wbc|1%kjpB+Z1#Tr Uqp$a}0u5&HboFyt=akR{02gvSn*aa+ literal 0 HcmV?d00001