1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 08:20:21 +01:00

phase out separate colored bathroom tiles textures

use entirely new, better-looking separate fg and bg images, colorized as needed.
This commit is contained in:
Vanessa Ezekowitz 2015-05-03 23:12:30 -04:00
parent 9736e3d187
commit 8873559795
12 changed files with 24 additions and 15 deletions

View File

@ -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(),

Binary file not shown.

Before

Width:  |  Height:  |  Size: 261 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 359 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 337 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 387 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 340 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 312 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 482 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 309 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 284 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 295 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 306 B