summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-09-08 10:09:42 -0400
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-09-08 10:09:42 -0400
commit3cbb25d92a29dded644e1a99692777789df8eee2 (patch)
tree7d1690ad445260f98146a85bc892754d8582a8e4
parent0589d8f02e08dcd56b7711a0a97f4343508ff6e9 (diff)
downloadunifieddyes-3cbb25d92a29dded644e1a99692777789df8eee2.tar
unifieddyes-3cbb25d92a29dded644e1a99692777789df8eee2.tar.gz
unifieddyes-3cbb25d92a29dded644e1a99692777789df8eee2.tar.bz2
unifieddyes-3cbb25d92a29dded644e1a99692777789df8eee2.tar.xz
unifieddyes-3cbb25d92a29dded644e1a99692777789df8eee2.zip
pass inv to colored squared function
-rw-r--r--init.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/init.lua b/init.lua
index c6dbfda..d641dc9 100644
--- a/init.lua
+++ b/init.lua
@@ -848,7 +848,7 @@ local vps = 1.3 -- vertical position scale
local vs = 0.3 -- vertical shift/offset
local color_button_size = ";0.75,0.75;"
-function unifieddyes.make_colored_square(hexcolor, colorname, showall, creative, painting_with, nodepalette, hp, v2, selindic)
+function unifieddyes.make_colored_square(hexcolor, colorname, showall, creative, painting_with, nodepalette, hp, v2, selindic, inv)
local form = ""
local dye = "dye:"..colorname
@@ -937,7 +937,7 @@ function unifieddyes.show_airbrush_form(player)
local hexcolor = string.format("%02x", r2)..string.format("%02x", g2)..string.format("%02x", b2)
local f
- f, selindic = unifieddyes.make_colored_square(hexcolor, val..hue..sat, showall, creative, painting_with, nodepalette, hp, v2, selindic)
+ f, selindic = unifieddyes.make_colored_square(hexcolor, val..hue..sat, showall, creative, painting_with, nodepalette, hp, v2, selindic, inv)
base_form = base_form..f
end
@@ -970,7 +970,7 @@ function unifieddyes.show_airbrush_form(player)
local hexcolor = string.format("%02x", r3)..string.format("%02x", g3)..string.format("%02x", b3)
local f
- f, selindic = unifieddyes.make_colored_square(hexcolor, val..hue..sat, showall, creative, painting_with, nodepalette, hp, v2, selindic)
+ f, selindic = unifieddyes.make_colored_square(hexcolor, val..hue..sat, showall, creative, painting_with, nodepalette, hp, v2, selindic, inv)
base_form = base_form..f
end
end
@@ -992,7 +992,7 @@ function unifieddyes.show_airbrush_form(player)
end
local f
- f, selindic = unifieddyes.make_colored_square(hexgrey, grey, showall, creative, painting_with, nodepalette, hp, v2, selindic)
+ f, selindic = unifieddyes.make_colored_square(hexgrey, grey, showall, creative, painting_with, nodepalette, hp, v2, selindic, inv)
base_form = base_form..f
end