mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-07-22 15:20:22 +02:00
Use texture colorization where possible
Uses "color = <foo>" in the tile image def instead of compositing with ^[colorize or ^[brighten. Saves RAM.
This commit is contained in:
@ -3,17 +3,17 @@
|
||||
local S = homedecor.gettext
|
||||
|
||||
local shutters = {
|
||||
{"oak", S("unpainted oak"), "#bf8a51:200" },
|
||||
{"mahogany", S("mahogany"), "#822606:200" },
|
||||
{"red", S("red"), "#d00000:150" },
|
||||
{"yellow", S("yellow"), "#ffff00:150" },
|
||||
{"forest_green", S("forest green"), "#006000:150" },
|
||||
{"light_blue", S("light blue"), "#1963c7:150" },
|
||||
{"violet", S("violet"), "#6000ff:150" },
|
||||
{"black", S("black"), "#000000:200" },
|
||||
{"dark_grey", S("dark grey"), "#202020:200" },
|
||||
{"grey", S("grey"), "#c0c0c0:150" },
|
||||
{"white", S("white"), "#ffffff:150" },
|
||||
{"oak", S("unpainted oak"), "bf8a51" },
|
||||
{"mahogany", S("mahogany"), "822606" },
|
||||
{"red", S("red"), "d00000" },
|
||||
{"yellow", S("yellow"), "ffff00" },
|
||||
{"forest_green", S("forest green"), "006000" },
|
||||
{"light_blue", S("light blue"), "2878d8" },
|
||||
{"violet", S("violet"), "7000e0" },
|
||||
{"black", S("black"), "181818" },
|
||||
{"dark_grey", S("dark grey"), "404040" },
|
||||
{"grey", S("grey"), "b0b0b0" },
|
||||
{"white", S("white"), "ffffff" },
|
||||
}
|
||||
|
||||
local shutter_cbox = {
|
||||
@ -26,8 +26,8 @@ local shutter_cbox = {
|
||||
for _, s in ipairs(shutters) do
|
||||
local name, desc, hue = unpack(s)
|
||||
|
||||
local tile = "homedecor_window_shutter.png^[colorize:"..hue
|
||||
local inv = "homedecor_window_shutter_inv.png^[colorize:"..hue
|
||||
local tile = { name = "homedecor_window_shutter.png", color = tonumber("0xff"..hue) }
|
||||
local inv = "homedecor_window_shutter_inv.png^[colorize:#"..hue..":150"
|
||||
|
||||
homedecor.register("shutter_"..name, {
|
||||
mesh = "homedecor_window_shutter.obj",
|
||||
|
Reference in New Issue
Block a user