mirror of
https://github.com/mt-mods/unifieddyes.git
synced 2024-11-26 09:23:47 +01:00
pass inv to colored squared function
This commit is contained in:
parent
0589d8f02e
commit
3cbb25d92a
8
init.lua
8
init.lua
@ -848,7 +848,7 @@ local vps = 1.3 -- vertical position scale
|
|||||||
local vs = 0.3 -- vertical shift/offset
|
local vs = 0.3 -- vertical shift/offset
|
||||||
local color_button_size = ";0.75,0.75;"
|
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 form = ""
|
||||||
local dye = "dye:"..colorname
|
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 hexcolor = string.format("%02x", r2)..string.format("%02x", g2)..string.format("%02x", b2)
|
||||||
local f
|
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
|
base_form = base_form..f
|
||||||
end
|
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 hexcolor = string.format("%02x", r3)..string.format("%02x", g3)..string.format("%02x", b3)
|
||||||
local f
|
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
|
base_form = base_form..f
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -992,7 +992,7 @@ function unifieddyes.show_airbrush_form(player)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local f
|
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
|
base_form = base_form..f
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user