add inventory images for standing lamps, by jp

This commit is contained in:
Vanessa Ezekowitz 2014-09-30 10:58:46 -04:00
parent 4021edd243
commit a0f656a85d
7 changed files with 3 additions and 0 deletions

View File

@ -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",

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB