phase out separate colored bathroom tiles textures
use entirely new, better-looking separate fg and bg images, colorized as needed.
@ -1,29 +1,38 @@
|
|||||||
local S = homedecor.gettext
|
local S = homedecor.gettext
|
||||||
|
|
||||||
local bathroom_tile_colors = {
|
local bathroom_tile_colors = {
|
||||||
{ "1", "white/grey" },
|
{ "1", "white/grey", "#c0c0c0:200" },
|
||||||
{ "2", "white/dark grey" },
|
{ "2", "white/dark grey", "#404040:150" },
|
||||||
{ "3", "white/black" },
|
{ "3", "white/black", "#000000:200" },
|
||||||
{ "4", "black/dark grey" },
|
{ "4", "black/dark grey", "" },
|
||||||
{ "red", "white/red" },
|
{ "red", "white/red", "#d00000:150" },
|
||||||
{ "green", "white/green" },
|
{ "green", "white/green", "#00d000:150" },
|
||||||
{ "blue", "white/blue" },
|
{ "blue", "white/blue", "#0000d0:150" },
|
||||||
{ "yellow", "white/yellow" },
|
{ "yellow", "white/yellow", "#ffff00:150" },
|
||||||
{ "tan", "white/tan" },
|
{ "tan", "white/tan", "#ceaf42:150" }
|
||||||
}
|
}
|
||||||
|
|
||||||
for i in ipairs(bathroom_tile_colors) do
|
for i in ipairs(bathroom_tile_colors) do
|
||||||
local color = bathroom_tile_colors[i][1]
|
local color = bathroom_tile_colors[i][1]
|
||||||
local shade = bathroom_tile_colors[i][2]
|
local shade = bathroom_tile_colors[i][2]
|
||||||
|
local hue = bathroom_tile_colors[i][3]
|
||||||
|
|
||||||
|
local coloredtile = "homedecor_bathroom_tiles_bg.png^(homedecor_bathroom_tiles_fg.png^[colorize:"..hue..")"
|
||||||
|
|
||||||
|
if color == "4" then
|
||||||
|
coloredtile = "(homedecor_bathroom_tiles_bg.png^[colorize:#000000:75)"..
|
||||||
|
"^(homedecor_bathroom_tiles_fg.png^[colorize:#000000:200)"
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_node("homedecor:tiles_"..color, {
|
minetest.register_node("homedecor:tiles_"..color, {
|
||||||
description = "Bathroom/kitchen tiles ("..shade..")",
|
description = "Bathroom/kitchen tiles ("..shade..")",
|
||||||
tiles = {
|
tiles = {
|
||||||
"homedecor_bathroom_tiles_"..color..".png",
|
coloredtile,
|
||||||
"homedecor_bathroom_tiles_"..color..".png",
|
coloredtile,
|
||||||
"homedecor_bathroom_tiles_"..color..".png",
|
coloredtile,
|
||||||
"homedecor_bathroom_tiles_"..color..".png",
|
coloredtile,
|
||||||
"homedecor_bathroom_tiles_"..color..".png^[transformR90",
|
"("..coloredtile..")^[transformR90",
|
||||||
"homedecor_bathroom_tiles_"..color..".png^[transformR90"
|
"("..coloredtile..")^[transformR90"
|
||||||
},
|
},
|
||||||
groups = {cracky=3},
|
groups = {cracky=3},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
Before Width: | Height: | Size: 261 B |
Before Width: | Height: | Size: 359 B |
Before Width: | Height: | Size: 337 B |
Before Width: | Height: | Size: 387 B |
BIN
homedecor/textures/homedecor_bathroom_tiles_bg.png
Normal file
After Width: | Height: | Size: 340 B |
Before Width: | Height: | Size: 312 B |
BIN
homedecor/textures/homedecor_bathroom_tiles_fg.png
Normal file
After Width: | Height: | Size: 482 B |
Before Width: | Height: | Size: 309 B |
Before Width: | Height: | Size: 284 B |
Before Width: | Height: | Size: 295 B |
Before Width: | Height: | Size: 306 B |