diff options
author | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-09-08 10:24:08 -0400 |
---|---|---|
committer | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-09-08 10:24:08 -0400 |
commit | 95f009a282b09ddd37af37fe94eb5b222204ab0d (patch) | |
tree | d61f8298a342df6e6f0053e401df3ada727e0fd7 | |
parent | fb2c14b4a8495deda1482a723fac73fa1ffc01da (diff) | |
download | unifieddyes-95f009a282b09ddd37af37fe94eb5b222204ab0d.tar unifieddyes-95f009a282b09ddd37af37fe94eb5b222204ab0d.tar.gz unifieddyes-95f009a282b09ddd37af37fe94eb5b222204ab0d.tar.bz2 unifieddyes-95f009a282b09ddd37af37fe94eb5b222204ab0d.tar.xz unifieddyes-95f009a282b09ddd37af37fe94eb5b222204ab0d.zip |
show in color selector when a dye is on-hand in survival, but unavailable
(right-clicked node can't use it)
-rw-r--r-- | init.lua | 6 | ||||
-rw-r--r-- | textures/unifieddyes_onhand_unavailable_overlay.png | bin | 0 -> 319 bytes |
2 files changed, 5 insertions, 1 deletions
@@ -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 Binary files differnew file mode 100644 index 0000000..5b1c475 --- /dev/null +++ b/textures/unifieddyes_onhand_unavailable_overlay.png |