phase out extra curtain textures

use a single "base" color and colorize it
This commit is contained in:
Vanessa Ezekowitz 2015-05-03 22:20:06 -04:00
parent fa6289b282
commit 9736e3d187
15 changed files with 15 additions and 14 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 605 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 406 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 528 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 536 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 379 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 453 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 573 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 420 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 445 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 429 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 672 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 439 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 461 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 486 B

View File

@ -99,23 +99,24 @@ homedecor.register("blinds_thin", {
}) })
local curtaincolors = { local curtaincolors = {
"red", { "red", "#ad2323e0:175" },
"green", { "green", "#27a927e0:175" },
"blue", { "blue", "#2626c6e0:175" },
"white", { "white", "#ffffffe0:175" },
"pink", { "pink", "#ff8fb7e0:175" },
"violet" { "violet", "#7f29d7e0:175" },
} }
for c in ipairs(curtaincolors) do for c in ipairs(curtaincolors) do
local color = curtaincolors[c] local color = curtaincolors[c][1]
local color_d = S(curtaincolors[c]) local hue = curtaincolors[c][2]
local color_d = S(curtaincolors[c][1])
homedecor.register("curtain_"..color, { homedecor.register("curtain_"..color, {
description = S("Curtains (%s)"):format(color_d), description = S("Curtains (%s)"):format(color_d),
tiles = { "homedecor_curtain_"..color..".png" }, tiles = { "homedecor_curtain.png^[colorize:"..hue },
inventory_image = "homedecor_curtain_"..color..".png", inventory_image = "homedecor_curtain.png^[colorize:"..hue,
wield_image = "homedecor_curtain_"..color..".png", wield_image = "homedecor_curtain.png^[colorize:"..hue,
drawtype = 'signlike', drawtype = 'signlike',
use_texture_alpha = true, use_texture_alpha = true,
walkable = false, walkable = false,
@ -135,9 +136,9 @@ for c in ipairs(curtaincolors) do
homedecor.register("curtain_open_"..color, { homedecor.register("curtain_open_"..color, {
description = S("Curtains (%s)"):format(color_d), description = S("Curtains (%s)"):format(color_d),
tiles = { "homedecor_curtain_open_"..color..".png" }, tiles = { "homedecor_curtain_open.png^[colorize:"..hue },
inventory_image = "homedecor_curtain_open_"..color..".png", inventory_image = "homedecor_curtain_open.png^[colorize:"..hue,
wield_image = "homedecor_curtain_open_"..color..".png", wield_image = "homedecor_curtain_open.png^[colorize:"..hue,
drawtype = 'signlike', drawtype = 'signlike',
use_texture_alpha = true, use_texture_alpha = true,
walkable = false, walkable = false,