switch existing to xcompat textures
This commit is contained in:
parent
080551e647
commit
f432c53117
|
@ -178,7 +178,7 @@ local sbox = {
|
|||
fixed = { -8/16, -8/16, -8/16, 8/16, -6/16, 8/16},
|
||||
}
|
||||
|
||||
local wtex = homedecor.textures.default_junglewood
|
||||
local wtex = homedecor.textures.wood.jungle.planks
|
||||
|
||||
minetest.register_node("fake_fire:fancy_fire", {
|
||||
inventory_image = "fancy_fire_inv.png",
|
||||
|
|
|
@ -2,8 +2,8 @@ local S = minetest.get_translator("homedecor_bathroom")
|
|||
|
||||
local sc_disallow = minetest.get_modpath("screwdriver") and screwdriver.disallow or nil
|
||||
|
||||
local wood_tex = homedecor.textures.default_wood
|
||||
local water_tex = homedecor.textures.water
|
||||
local wood_tex = homedecor.textures.wood.apple.planks
|
||||
local water_tex = homedecor.textures.water.tile
|
||||
|
||||
homedecor.register("bathroom_tiles_dark", {
|
||||
description = S("Bathroom/kitchen tiles (dark)"),
|
||||
|
|
|
@ -2,7 +2,7 @@ local S = minetest.get_translator("homedecor_bedroom")
|
|||
|
||||
local sc_disallow = minetest.get_modpath("screwdriver") and screwdriver.disallow or nil
|
||||
|
||||
local wood_tex, wool_tex = homedecor.textures.default_wood, homedecor.textures.wool_white
|
||||
local wood_tex, wool_tex = homedecor.textures.wood.apple.planks, homedecor.textures.wool.white
|
||||
|
||||
local bed_sbox = {
|
||||
type = "wallmounted",
|
||||
|
|
|
@ -7,7 +7,7 @@ homedecor.register("air_conditioner", {
|
|||
mesh = "homedecor_ac.obj",
|
||||
tiles = {
|
||||
"homedecor_ac.png",
|
||||
homedecor.textures.glass
|
||||
homedecor.textures.glass.pane
|
||||
},
|
||||
groups = { snappy = 3, dig_stone = 3 },
|
||||
use_texture_alpha = "clip",
|
||||
|
|
|
@ -135,7 +135,7 @@ homedecor.register("grandfather_clock", {
|
|||
description = S("Grandfather Clock"),
|
||||
mesh = "homedecor_grandfather_clock.obj",
|
||||
tiles = {
|
||||
homedecor.textures.glass,
|
||||
homedecor.textures.glass.pane,
|
||||
"homedecor_grandfather_clock_face.png",
|
||||
homedecor.lux_wood,
|
||||
"homedecor_grandfather_clock_face_edge.png",
|
||||
|
|
|
@ -54,8 +54,7 @@ homedecor.color_dark_grey = 0xff606060
|
|||
homedecor.color_med_grey = 0xffa0a0a0
|
||||
|
||||
-- load different handler subsystems
|
||||
dofile(modpath.."/textures.lua")
|
||||
dofile(modpath.."/materials.lua")
|
||||
dofile(modpath.."/xcompat.lua")
|
||||
dofile(modpath.."/nodeboxes.lua")
|
||||
dofile(modpath.."/expansion.lua")
|
||||
dofile(modpath.."/furnaces.lua")
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
homedecor.materials = xcompat.materials
|
|
@ -1,34 +0,0 @@
|
|||
homedecor.plain_wood = { name = "homedecor_generic_wood_plain.png", color = 0xffa76820 }
|
||||
homedecor.mahogany_wood = { name = "homedecor_generic_wood_plain.png", color = 0xff7d2506 }
|
||||
homedecor.white_wood = "homedecor_generic_wood_plain.png"
|
||||
homedecor.dark_wood = { name = "homedecor_generic_wood_plain.png", color = 0xff39240f }
|
||||
homedecor.lux_wood = { name = "homedecor_generic_wood_luxury.png", color = 0xff643f23 }
|
||||
|
||||
homedecor.textures = {
|
||||
glass =
|
||||
"[combine:16x16:" ..
|
||||
"0,0=\\[combine\\:1x16\\^[noalpha\\^[colorize\\:#ffffff:" ..
|
||||
"0,0=\\[combine\\:16x1\\^[noalpha\\^[colorize\\:#ffffff:" ..
|
||||
"0,15=\\[combine\\:16x1\\^[noalpha\\^[colorize\\:#ffffff:" ..
|
||||
"15,0=\\[combine\\:1x16\\^[noalpha\\^[colorize\\:#ffffff",
|
||||
default_wood = "[combine:16x16^[noalpha^[colorize:#654321",
|
||||
default_junglewood = "[combine:16x16^[noalpha^[colorize:#563d2d",
|
||||
water = "[combine:16x16^[noalpha^[colorize:#00008b",
|
||||
wool_white = "[combine:16x16^[noalpha^[colorize:#ffffff",
|
||||
wool_black = "[combine:16x16^[noalpha^[colorize:#000000",
|
||||
wool_grey = "[combine:16x16^[noalpha^[colorize:#313b3c",
|
||||
wool_dark_grey = "[combine:16x16^[noalpha^[colorize:#313b3c",
|
||||
}
|
||||
|
||||
if minetest.get_modpath("default") then
|
||||
homedecor.textures = {
|
||||
glass = "default_glass.png",
|
||||
default_wood = "default_wood.png",
|
||||
default_junglewood = "default_junglewood.png",
|
||||
water = "default_water.png",
|
||||
wool_white = "wool_white.png",
|
||||
wool_black = "wool_black.png",
|
||||
wool_grey = "wool_grey.png",
|
||||
wool_dark_grey = "wool_dark_grey.png",
|
||||
}
|
||||
end
|
|
@ -0,0 +1,8 @@
|
|||
homedecor.plain_wood = { name = "homedecor_generic_wood_plain.png", color = 0xffa76820 }
|
||||
homedecor.mahogany_wood = { name = "homedecor_generic_wood_plain.png", color = 0xff7d2506 }
|
||||
homedecor.white_wood = "homedecor_generic_wood_plain.png"
|
||||
homedecor.dark_wood = { name = "homedecor_generic_wood_plain.png", color = 0xff39240f }
|
||||
homedecor.lux_wood = { name = "homedecor_generic_wood_luxury.png", color = 0xff643f23 }
|
||||
|
||||
homedecor.materials = xcompat.materials
|
||||
homedecor.textures = xcompat.textures
|
|
@ -43,7 +43,7 @@ homedecor.register("barbecue", {
|
|||
|
||||
minetest.register_alias("homedecor:barbecue_meat", "air")
|
||||
|
||||
local wood_tex = homedecor.textures.default_wood
|
||||
local wood_tex = homedecor.textures.wood.apple.planks
|
||||
|
||||
homedecor.register("doghouse", {
|
||||
mesh = "homedecor_doghouse.obj",
|
||||
|
|
|
@ -5,7 +5,7 @@ local ob_cbox = {
|
|||
fixed = { -0.5, -0.5, 0, 0.5, 0.5, 0.5 }
|
||||
}
|
||||
|
||||
local wood_tex = homedecor.textures.default_wood
|
||||
local wood_tex = homedecor.textures.wood.apple.planks
|
||||
|
||||
homedecor.register("openframe_bookshelf", {
|
||||
description = S("Bookshelf (open-frame)"),
|
||||
|
|
|
@ -145,7 +145,7 @@ homedecor.register("dishwasher_"..m, {
|
|||
})
|
||||
end
|
||||
|
||||
local wood_tex = homedecor.textures.default_wood
|
||||
local wood_tex = homedecor.textures.wood.apple.planks
|
||||
local cabinet_sides = "("..wood_tex.."^[transformR90)^homedecor_kitchen_cabinet_bevel.png"
|
||||
local cabinet_sides_colored = "(homedecor_generic_wood_plain.png^[transformR90)^homedecor_kitchen_cabinet_bevel.png"
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@ local S = minetest.get_translator("homedecor_misc")
|
|||
|
||||
homedecor_misc = {}
|
||||
|
||||
local wool_black, wool_grey = homedecor.textures.wool_black, homedecor.textures.wool_grey
|
||||
local wood_tex = homedecor.textures.default_wood
|
||||
local wool_black, wool_grey = homedecor.textures.wool.black, homedecor.textures.wool.grey
|
||||
local wood_tex = homedecor.textures.wood.apple.planks
|
||||
|
||||
homedecor.register("ceiling_paint", {
|
||||
description = S("Textured Ceiling Paint"),
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
local S = minetest.get_translator("homedecor_pictures_and_paintings")
|
||||
|
||||
local wood_tex = homedecor.textures.default_wood
|
||||
local wood_tex = homedecor.textures.wood.apple.planks
|
||||
|
||||
local pframe_cbox = {
|
||||
type = "fixed",
|
||||
|
|
|
@ -5,8 +5,8 @@ homedecor_roofing = {}
|
|||
minetest.register_node(":homedecor:skylight", {
|
||||
description = S("Glass Skylight"),
|
||||
drawtype = "raillike",
|
||||
tiles = { homedecor.textures.glass },
|
||||
wield_image = homedecor.textures.glass,
|
||||
tiles = { homedecor.textures.glass.pane },
|
||||
wield_image = homedecor.textures.glass.pane,
|
||||
inventory_image = "homedecor_skylight_inv.png",
|
||||
groups = { snappy = 3, dig_tree = 2 , axey=5},
|
||||
is_ground_content = false,
|
||||
|
|
|
@ -40,9 +40,9 @@ homedecor.register("armchair", {
|
|||
description = S("Armchair"),
|
||||
mesh = "forniture_armchair.obj",
|
||||
tiles = {
|
||||
homedecor.textures.wool_white,
|
||||
{ name = homedecor.textures.wool_dark_grey, color = 0xffffffff },
|
||||
{ name = homedecor.textures.default_wood, color = 0xffffffff }
|
||||
homedecor.textures.wool.white,
|
||||
{ name = homedecor.textures.wool.dark_grey, color = 0xffffffff },
|
||||
{ name = homedecor.textures.wood.apple.planks, color = 0xffffffff }
|
||||
},
|
||||
inventory_image = "homedecor_armchair_inv.png",
|
||||
paramtype2 = "colorwallmounted",
|
||||
|
|
|
@ -162,7 +162,7 @@ homedecor.register("kitchen_chair_padded", {
|
|||
mesh = "homedecor_kitchen_chair.obj",
|
||||
tiles = {
|
||||
homedecor.plain_wood,
|
||||
homedecor.textures.wool_white,
|
||||
homedecor.textures.wool.white,
|
||||
},
|
||||
inventory_image = "homedecor_chair_padded_inv.png",
|
||||
paramtype2 = "colorwallmounted",
|
||||
|
|
|
@ -161,7 +161,7 @@ homedecor.register("curtain_open", {
|
|||
local mats = {
|
||||
{ "brass", S("brass"), "homedecor_generic_metal_brass.png" },
|
||||
{ "wrought_iron", S("wrought iron"), "homedecor_generic_metal_wrought_iron.png" },
|
||||
{ "wood", S("wood"), homedecor.textures.default_wood }
|
||||
{ "wood", S("wood"), homedecor.textures.wood.apple.planks }
|
||||
}
|
||||
|
||||
for _, m in ipairs(mats) do
|
||||
|
|
Loading…
Reference in New Issue