mirror of
https://github.com/mt-mods/led_marquee.git
synced 2024-11-30 19:13:47 +01:00
wield image
This commit is contained in:
parent
f7155b385e
commit
f5512c4837
7
init.lua
7
init.lua
@ -364,7 +364,7 @@ end
|
|||||||
for i = 31, 255 do
|
for i = 31, 255 do
|
||||||
local groups = { cracky = 2, not_in_creative_inventory = 1}
|
local groups = { cracky = 2, not_in_creative_inventory = 1}
|
||||||
local light = LIGHT_MAX-2
|
local light = LIGHT_MAX-2
|
||||||
local description = S("Alphanumeric LED marquee panel ("..i..")")
|
local description = S("LED marquee panel ("..i..")")
|
||||||
local tiles = {
|
local tiles = {
|
||||||
{ name="led_marquee_base.png", color="white"},
|
{ name="led_marquee_base.png", color="white"},
|
||||||
{ name="led_marquee_leds_off.png", color="white"},
|
{ name="led_marquee_leds_off.png", color="white"},
|
||||||
@ -385,7 +385,8 @@ for i = 31, 255 do
|
|||||||
if i == 32 then
|
if i == 32 then
|
||||||
groups = {cracky = 2}
|
groups = {cracky = 2}
|
||||||
light = nil
|
light = nil
|
||||||
description = S("Alphanumeric LED marquee panel")
|
description = S("LED marquee panel")
|
||||||
|
wimage = "led_marquee_leds_off.png^(led_marquee_char_155.png^[multiply:red)"
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_node("led_marquee:char_"..i, {
|
minetest.register_node("led_marquee:char_"..i, {
|
||||||
@ -393,6 +394,8 @@ for i = 31, 255 do
|
|||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
mesh = "led_marquee.obj",
|
mesh = "led_marquee.obj",
|
||||||
tiles = tiles,
|
tiles = tiles,
|
||||||
|
inventory_image = wimage,
|
||||||
|
wield_image = wimage,
|
||||||
palette="led_marquee_palette.png",
|
palette="led_marquee_palette.png",
|
||||||
use_texture_alpha = true,
|
use_texture_alpha = true,
|
||||||
groups = groups,
|
groups = groups,
|
||||||
|
Loading…
Reference in New Issue
Block a user