mirror of
https://github.com/mt-mods/led_marquee.git
synced 2025-06-28 22:36:41 +02:00
make "cursor" character flash via an animated texture
This commit is contained in:
22
init.lua
22
init.lua
@ -133,6 +133,11 @@ for i = 32, 129 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("Alphanumeric LED marquee panel ("..i..")")
|
||||||
|
local tiles = {
|
||||||
|
{ name="led_marquee_base.png", color="white"},
|
||||||
|
{ name="led_marquee_leds_off.png", color="white"},
|
||||||
|
"led_marquee_char_"..i..".png",
|
||||||
|
}
|
||||||
|
|
||||||
if i == 32 then
|
if i == 32 then
|
||||||
groups = {cracky = 2}
|
groups = {cracky = 2}
|
||||||
@ -140,15 +145,22 @@ for i = 32, 129 do
|
|||||||
description = S("Alphanumeric LED marquee panel")
|
description = S("Alphanumeric LED marquee panel")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if i == 129 then
|
||||||
|
tiles = {
|
||||||
|
{ name="led_marquee_base.png", color="white"},
|
||||||
|
{ name="led_marquee_leds_off.png", color="white"},
|
||||||
|
{
|
||||||
|
name = "led_marquee_char_129.png",
|
||||||
|
animation = {type = "vertical_frames", aspect_w = 32, aspect_h = 32, length = 0.75}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_node("led_marquee:char_"..i, {
|
minetest.register_node("led_marquee:char_"..i, {
|
||||||
description = description,
|
description = description,
|
||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
mesh = "led_marquee.obj",
|
mesh = "led_marquee.obj",
|
||||||
tiles = {
|
tiles = tiles,
|
||||||
{ name="led_marquee_base.png", color="white"},
|
|
||||||
{ name="led_marquee_leds_off.png", color="white"},
|
|
||||||
"led_marquee_char_"..i..".png",
|
|
||||||
},
|
|
||||||
palette="palette.png",
|
palette="palette.png",
|
||||||
use_texture_alpha = true,
|
use_texture_alpha = true,
|
||||||
groups = groups,
|
groups = groups,
|
||||||
|
Binary file not shown.
Before ![]() (image error) Size: 361 B After ![]() (image error) Size: 360 B ![]() ![]() |
Reference in New Issue
Block a user