summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-09-08 10:24:08 -0400
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-09-08 10:24:08 -0400
commit95f009a282b09ddd37af37fe94eb5b222204ab0d (patch)
treed61f8298a342df6e6f0053e401df3ada727e0fd7
parentfb2c14b4a8495deda1482a723fac73fa1ffc01da (diff)
downloadunifieddyes-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.lua6
-rw-r--r--textures/unifieddyes_onhand_unavailable_overlay.pngbin0 -> 319 bytes
2 files changed, 5 insertions, 1 deletions
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 0000000..5b1c475
--- /dev/null
+++ b/textures/unifieddyes_onhand_unavailable_overlay.png
Binary files differ