forked from mtcontrib/homedecor_modpack
add inventory images for standing lamps, by jp
This commit is contained in:
parent
4021edd243
commit
a0f656a85d
@ -392,9 +392,11 @@ local lamp_colors = { "", "blue", "green", "pink", "red", "violet" }
|
||||
|
||||
local function reg_lamp(suffix, nxt, tilesuffix, light, color)
|
||||
local lampcolor = "_"..color
|
||||
local standingcolor = "_"..color
|
||||
local colordesc = " ("..color..")"
|
||||
if color == "" then
|
||||
lampcolor = ""
|
||||
standingcolor = "_white"
|
||||
colordesc = " (white)"
|
||||
end
|
||||
minetest.register_node("homedecor:table_lamp"..lampcolor.."_"..suffix, {
|
||||
@ -449,6 +451,7 @@ local function reg_lamp(suffix, nxt, tilesuffix, light, color)
|
||||
"forniture_table_lamp_s"..tilesuffix..".png",
|
||||
"homedecor_standing_lamp_bottom_sides.png",
|
||||
},
|
||||
inventory_image = "homedecor_standing_lamp"..standingcolor.."_inv.png",
|
||||
paramtype = "light",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
|
BIN
homedecor/textures/homedecor_standing_lamp_blue_inv.png
Normal file
BIN
homedecor/textures/homedecor_standing_lamp_blue_inv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
BIN
homedecor/textures/homedecor_standing_lamp_green_inv.png
Normal file
BIN
homedecor/textures/homedecor_standing_lamp_green_inv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
homedecor/textures/homedecor_standing_lamp_pink_inv.png
Normal file
BIN
homedecor/textures/homedecor_standing_lamp_pink_inv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
homedecor/textures/homedecor_standing_lamp_red_inv.png
Normal file
BIN
homedecor/textures/homedecor_standing_lamp_red_inv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
BIN
homedecor/textures/homedecor_standing_lamp_violet_inv.png
Normal file
BIN
homedecor/textures/homedecor_standing_lamp_violet_inv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
homedecor/textures/homedecor_standing_lamp_white_inv.png
Normal file
BIN
homedecor/textures/homedecor_standing_lamp_white_inv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
Loading…
Reference in New Issue
Block a user