Support default dyes
7
init.lua
|
@ -18,8 +18,10 @@ textures = {
|
||||||
orange = "orange.png", red = "red.png",
|
orange = "orange.png", red = "red.png",
|
||||||
violet = "violet.png", blue = "blue.png",
|
violet = "violet.png", blue = "blue.png",
|
||||||
green = "green.png", magenta = "magenta.png",
|
green = "green.png", magenta = "magenta.png",
|
||||||
cyan = "cyan.png", lightgrey = "lightgrey.png",
|
cyan = "cyan.png", grey = "grey.png",
|
||||||
darkgrey = "darkgrey.png", black = "black.png"
|
darkgrey = "darkgrey.png", black = "black.png",
|
||||||
|
darkgreen = "darkgreen.png", brown="brown.png",
|
||||||
|
pink = "pink.png"
|
||||||
}
|
}
|
||||||
|
|
||||||
thickness = 0.1
|
thickness = 0.1
|
||||||
|
@ -72,7 +74,6 @@ picent = {
|
||||||
local meta = minetest.env:get_meta(pos)
|
local meta = minetest.env:get_meta(pos)
|
||||||
local data = meta:get_string("painting:picturedata")
|
local data = meta:get_string("painting:picturedata")
|
||||||
data = minetest.deserialize(data)
|
data = minetest.deserialize(data)
|
||||||
|
|
||||||
if not data.grid then return end
|
if not data.grid then return end
|
||||||
self.object:set_properties({textures = { to_imagestring(data.grid, data.res) }})
|
self.object:set_properties({textures = { to_imagestring(data.grid, data.res) }})
|
||||||
end
|
end
|
||||||
|
|
After Width: | Height: | Size: 128 B |
After Width: | Height: | Size: 128 B |
Before Width: | Height: | Size: 295 B After Width: | Height: | Size: 295 B |
Before Width: | Height: | Size: 301 B |
After Width: | Height: | Size: 570 B |
After Width: | Height: | Size: 563 B |
Before Width: | Height: | Size: 569 B After Width: | Height: | Size: 569 B |
After Width: | Height: | Size: 574 B |
After Width: | Height: | Size: 128 B |