phase out extra curtain textures
use a single "base" color and colorize it
BIN
homedecor/textures/homedecor_curtain.png
Normal file
After Width: | Height: | Size: 605 B |
Before Width: | Height: | Size: 406 B |
Before Width: | Height: | Size: 528 B |
BIN
homedecor/textures/homedecor_curtain_open.png
Normal file
After Width: | Height: | Size: 536 B |
Before Width: | Height: | Size: 379 B |
Before Width: | Height: | Size: 453 B |
Before Width: | Height: | Size: 573 B |
Before Width: | Height: | Size: 420 B |
Before Width: | Height: | Size: 445 B |
Before Width: | Height: | Size: 429 B |
Before Width: | Height: | Size: 672 B |
Before Width: | Height: | Size: 439 B |
Before Width: | Height: | Size: 461 B |
Before Width: | Height: | Size: 486 B |
|
@ -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,
|
||||||
|
|