1
0
mirror of https://github.com/mt-mods/led_marquee.git synced 2025-06-28 06:20:33 +02:00

9 Commits

Author SHA1 Message Date
c09527c029 Merge branch 'gitlab' 2021-02-27 01:57:01 +01:00
0f31f4832c Change the texture of pixels to squares 2021-02-27 01:53:18 +01:00
108f0dad1a Fix deprecated use of use_texture_alpha 2021-02-27 01:46:36 +01:00
023966f9c4 Merge remote-tracking branch 'upstream/master' 2021-02-27 00:01:20 +01:00
63de1f5ab5 Don't allow engine to add the implicit "Proceed" button
(this change makes it possible to theme the formspec)
2021-02-25 02:08:22 -05:00
79bc4755dd Merge remote-tracking branch 'upstream/master' 2020-09-11 20:45:38 +02:00
642aec419a Merge branch 'master' into 'master'
fix crash when "scroll_speed" is not a number

See merge request VanessaE/led_marquee!5
2020-09-09 10:29:17 +00:00
caf6e24d04 fix crash when "scroll_speed" is not a number 2020-09-09 19:22:14 +10:00
b081594e2c Add loading message to action log 2020-07-23 16:01:08 +02:00
5 changed files with 9 additions and 3 deletions

View File

@ -103,7 +103,12 @@ local char_to_color = {
-- the following functions based on the so-named ones in Jeija's digilines mod
local reset_meta = function(pos)
minetest.get_meta(pos):set_string("formspec", "field[channel;Channel;${channel}]")
minetest.get_meta(pos):set_string("formspec",
"formspec_version[4]"..
"size[8,4]"..
"button_exit[3,2.5;2,0.5;proceed;Proceed]"..
"field[1.75,1.5;4.5,0.5;channel;Channel;${channel}]"
)
end
local on_digiline_receive_std = function(pos, node, channel, msg)
@ -360,7 +365,7 @@ local on_digiline_receive_string = function(pos, node, channel, msg)
led_marquee.set_timer(pos, 0)
return
elseif string.sub(msg, 1, 12) == "scroll_speed" then
local timeout = tonumber(string.sub(msg, 13))
local timeout = tonumber(string.sub(msg, 13)) or 0
led_marquee.set_timer(pos, math.max(timeout, led_marquee.message_minimum_time))
elseif string.sub(msg, 1, 11) == "scroll_step" then
local skip = tonumber(string.sub(msg, 12))
@ -432,7 +437,7 @@ for i = 31, 255 do
inventory_image = wimage,
wield_image = wimage,
palette="led_marquee_palette.png",
use_texture_alpha = true,
use_texture_alpha = "blend",
groups = groups,
paramtype = "light",
paramtype2 = "colorwallmounted",
@ -474,3 +479,4 @@ minetest.register_craft({
},
})
minetest.log("action", "[led_marquee] loaded.")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 137 B

After

Width:  |  Height:  |  Size: 145 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 165 B

After

Width:  |  Height:  |  Size: 135 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 189 B

After

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 B

After

Width:  |  Height:  |  Size: 83 B