reduced textures in lrfurn mod and added a full color range to lrfurn and beds

This commit is contained in:
crazyginger72 2015-09-23 01:29:06 -04:00
parent 181c746bbf
commit 70758559cc
16 changed files with 49 additions and 57 deletions

View File

@ -1,15 +1,21 @@
local S = homedecor.gettext local S = homedecor.gettext
local bedcolors = { local bedcolors = {
{ "red", "#d00000:150" }, { "black", "#000000:200" }, --new cg72
{ "green", "#00d000:150" },
{ "blue", "#0000d0:150" },
{ "violet", "#7000e0:150" },
{ "brown", "#603010:175" }, { "brown", "#603010:175" },
{ "darkgrey", "#101010:150" }, { "blue", "#0000d0:150" },
{ "cyan", "#009fa7:150" }, --new cg72
{ "darkgrey", "#101010:175" },
{ "dark_green", "#007000:150" },
{ "green", "#00d000:150" }, --new cg72
{ "grey", "#101010:100" }, --new cg72
{ "magenta", "#e0048b:150" }, --new cg72
{ "orange", "#ff3000:150" }, { "orange", "#ff3000:150" },
{ "yellow", "#ffe000:150" }, { "pink", "#ff80b0:150" },
{ "pink", "#ff80b0:150" } { "red", "#d00000:150" },
{ "violet", "#7000e0:150" },
{ "white", "#000000:000" }, --new cg72
{ "yellow", "#ffe000:150" }
} }
local bed_sbox = { local bed_sbox = {

View File

@ -1,14 +1,3 @@
local armchairs_list = {
{ "Red Armchair", "red"},
{ "Orange Armchair", "orange"},
{ "Yellow Armchair", "yellow"},
{ "Green Armchair", "green"},
{ "Blue Armchair", "blue"},
{ "Violet Armchair", "violet"},
{ "Black Armchair", "black"},
{ "Grey Armchair", "grey"},
{ "White Armchair", "white"},
}
local armchair_cbox = { local armchair_cbox = {
type = "fixed", type = "fixed",
@ -18,16 +7,16 @@ local armchair_cbox = {
} }
} }
for i in ipairs(armchairs_list) do for i in ipairs(lrfurn.colors) do
local armchairdesc = armchairs_list[i][1] local colour = lrfurn.colors[i][1]
local colour = armchairs_list[i][2] local hue = lrfurn.colors[i][2]
minetest.register_node("lrfurn:armchair_"..colour, { minetest.register_node("lrfurn:armchair_"..colour, {
description = armchairdesc, description = "Armchair ("..colour..")",
drawtype = "mesh", drawtype = "mesh",
mesh = "lrfurn_armchair.obj", mesh = "lrfurn_armchair.obj",
tiles = { tiles = {
"lrfurn_sofa_"..colour..".png", "lrfurn_bg_white.png^[colorize:"..hue.."^lrfurn_sofa_overlay.png",
"lrfurn_sofa_bottom.png" "lrfurn_sofa_bottom.png"
}, },
paramtype = "light", paramtype = "light",

View File

@ -8,6 +8,24 @@ lrfurn.fdir_to_fwd = {
{ -1, 0 }, { -1, 0 },
} }
lrfurn.colors = { -- mod changed to use colorize feature of minetest engine (cg72)
{ "black", "#000000:230" },
{ "brown", "#251005:225" },
{ "blue", "#0000d0:225" },
{ "cyan", "#009fa7:250" },
{ "dark_grey", "#101010:175" },
{ "dark_green", "#007000:230" },
{ "green", "#00d000:250" },
{ "grey", "#101010:100" },
{ "magenta", "#e0048b:250" },
{ "orange", "#ee9000:240" },
{ "pink", "#ff90b0:250" },
{ "red", "#800000:240" },
{ "violet", "#9000d0:250" },
{ "white", "#000000:000" },
{ "yellow", "#dde000:240" }
}
function lrfurn.check_forward(pos, fdir, long, placer) function lrfurn.check_forward(pos, fdir, long, placer)
if not fdir or fdir > 3 then fdir = 0 end if not fdir or fdir > 3 then fdir = 0 end

View File

@ -1,14 +1,3 @@
local longsofas_list = {
{ "Red Long Sofa", "red"},
{ "Orange Long Sofa", "orange"},
{ "Yellow Long Sofa", "yellow"},
{ "Green Long Sofa", "green"},
{ "Blue Long Sofa", "blue"},
{ "Violet Long Sofa", "violet"},
{ "Black Long Sofa", "black"},
{ "Grey Long Sofa", "grey"},
{ "White Long Sofa", "white"},
}
local longsofa_sbox = { local longsofa_sbox = {
type = "fixed", type = "fixed",
@ -23,16 +12,16 @@ local longsofa_cbox = {
} }
} }
for i in ipairs(longsofas_list) do for i in ipairs(lrfurn.colors) do
local longsofadesc = longsofas_list[i][1] local colour = lrfurn.colors[i][1]
local colour = longsofas_list[i][2] local hue = lrfurn.colors[i][2]
minetest.register_node("lrfurn:longsofa_"..colour, { minetest.register_node("lrfurn:longsofa_"..colour, {
description = longsofadesc, description = "Long Sofa ("..colour..")",
drawtype = "mesh", drawtype = "mesh",
mesh = "lrfurn_sofa_long.obj", mesh = "lrfurn_sofa_long.obj",
tiles = { tiles = {
"lrfurn_sofa_"..colour..".png", "lrfurn_bg_white.png^[colorize:"..hue.."^lrfurn_sofa_overlay.png",
"lrfurn_sofa_bottom.png" "lrfurn_sofa_bottom.png"
}, },
paramtype = "light", paramtype = "light",

View File

@ -1,14 +1,4 @@
local sofas_list = {
{ "Red Sofa", "red"},
{ "Orange Sofa", "orange"},
{ "Yellow Sofa", "yellow"},
{ "Green Sofa", "green"},
{ "Blue Sofa", "blue"},
{ "Violet Sofa", "violet"},
{ "Black Sofa", "black"},
{ "Grey Sofa", "grey"},
{ "White Sofa", "white"},
}
local sofa_sbox = { local sofa_sbox = {
type = "fixed", type = "fixed",
@ -23,16 +13,16 @@ local sofa_cbox = {
} }
} }
for i in ipairs(sofas_list) do for i in ipairs(lrfurn.colors) do
local sofadesc = sofas_list[i][1] local colour = lrfurn.colors[i][1]
local colour = sofas_list[i][2] local hue = lrfurn.colors[i][2]
minetest.register_node("lrfurn:sofa_"..colour, { minetest.register_node("lrfurn:sofa_"..colour, {
description = sofadesc, description = "Sofa ("..colour..")",
drawtype = "mesh", drawtype = "mesh",
mesh = "lrfurn_sofa_short.obj", mesh = "lrfurn_sofa_short.obj",
tiles = { tiles = {
"lrfurn_sofa_"..colour..".png", "lrfurn_bg_white.png^[colorize:"..hue.."^lrfurn_sofa_overlay.png",
"lrfurn_sofa_bottom.png" "lrfurn_sofa_bottom.png"
}, },
paramtype = "light", paramtype = "light",

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 619 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 830 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 889 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 622 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 707 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 809 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 793 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 640 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 702 B