mirror of
https://github.com/mt-mods/led_marquee.git
synced 2025-06-29 23:00:56 +02:00
use masking:
glyph images are now used as masks over the "leds_on" image instead of the glyphs themselves looking like they're made of LEDs. Makes font files much simpler, easier to draw, makes LEDs easier to re-texture. White for "on" LEDs, black for "off" Also optimized all images (optipng, pngcrush)
This commit is contained in:
4
init.lua
4
init.lua
@ -369,11 +369,11 @@ for i = 31, 255 do
|
||||
local groups = { cracky = 2, not_in_creative_inventory = 1}
|
||||
local light = LIGHT_MAX-2
|
||||
local description = S("LED marquee panel ("..i..")")
|
||||
local leds = "led_marquee_char_"..i..".png"
|
||||
local leds = "led_marquee_char_"..i..".png^[mask:led_marquee_leds_on.png"
|
||||
|
||||
if i == 31 then
|
||||
leds ={
|
||||
name = "led_marquee_char_31.png",
|
||||
name = "led_marquee_char_31.png^[mask:led_marquee_leds_on_cursor.png",
|
||||
animation = {type = "vertical_frames", aspect_w = 32, aspect_h = 32, length = 0.75}
|
||||
}
|
||||
end
|
||||
|
Reference in New Issue
Block a user