From 95f009a282b09ddd37af37fe94eb5b222204ab0d Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Sat, 8 Sep 2018 10:24:08 -0400 Subject: [PATCH] show in color selector when a dye is on-hand in survival, but unavailable (right-clicked node can't use it) --- init.lua | 6 +++++- .../unifieddyes_onhand_unavailable_overlay.png | Bin 0 -> 319 bytes 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 textures/unifieddyes_onhand_unavailable_overlay.png diff --git a/init.lua b/init.lua index 9fa294a..2d0b22b 100644 --- a/init.lua +++ b/init.lua @@ -862,7 +862,11 @@ function unifieddyes.make_colored_square(hexcolor, colorname, showall, creative, local unavail_overlay = "" if not showall and not unifieddyes.palette_has_color[nodepalette.."_"..colorname] then - unavail_overlay = "^unifieddyes_unavailable_overlay.png" + if overlay == "" then + unavail_overlay = "^unifieddyes_unavailable_overlay.png" + else + unavail_overlay = "^unifieddyes_onhand_unavailable_overlay.png" + end end if dye == painting_with then diff --git a/textures/unifieddyes_onhand_unavailable_overlay.png b/textures/unifieddyes_onhand_unavailable_overlay.png new file mode 100644 index 0000000000000000000000000000000000000000..5b1c47583363f4152034657402c22a339aeb4e0e GIT binary patch literal 319 zcmV-F0l@x=P)#KHyOt+fIGT5AA+%;yWhi~sc?=c0a7 zx*Pr>L%i0CGTAw0h