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)
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
|
||||
|
Before Width: | Height: | Size: 419 B After Width: | Height: | Size: 208 B |
Before Width: | Height: | Size: 460 B After Width: | Height: | Size: 89 B |
Before Width: | Height: | Size: 495 B After Width: | Height: | Size: 94 B |
Before Width: | Height: | Size: 485 B After Width: | Height: | Size: 98 B |
Before Width: | Height: | Size: 493 B After Width: | Height: | Size: 92 B |
Before Width: | Height: | Size: 437 B After Width: | Height: | Size: 86 B |
Before Width: | Height: | Size: 449 B After Width: | Height: | Size: 90 B |
Before Width: | Height: | Size: 451 B After Width: | Height: | Size: 88 B |
Before Width: | Height: | Size: 298 B After Width: | Height: | Size: 89 B |
Before Width: | Height: | Size: 420 B After Width: | Height: | Size: 85 B |
Before Width: | Height: | Size: 594 B After Width: | Height: | Size: 91 B |
Before Width: | Height: | Size: 424 B After Width: | Height: | Size: 82 B |
Before Width: | Height: | Size: 429 B After Width: | Height: | Size: 85 B |
Before Width: | Height: | Size: 472 B After Width: | Height: | Size: 87 B |
Before Width: | Height: | Size: 492 B After Width: | Height: | Size: 91 B |
Before Width: | Height: | Size: 441 B After Width: | Height: | Size: 84 B |
Before Width: | Height: | Size: 450 B After Width: | Height: | Size: 89 B |
Before Width: | Height: | Size: 454 B After Width: | Height: | Size: 89 B |
Before Width: | Height: | Size: 416 B After Width: | Height: | Size: 81 B |
Before Width: | Height: | Size: 460 B After Width: | Height: | Size: 87 B |
Before Width: | Height: | Size: 486 B After Width: | Height: | Size: 93 B |
Before Width: | Height: | Size: 473 B After Width: | Height: | Size: 93 B |
Before Width: | Height: | Size: 344 B After Width: | Height: | Size: 86 B |
Before Width: | Height: | Size: 453 B After Width: | Height: | Size: 86 B |
Before Width: | Height: | Size: 445 B After Width: | Height: | Size: 88 B |
Before Width: | Height: | Size: 371 B After Width: | Height: | Size: 79 B |
Before Width: | Height: | Size: 447 B After Width: | Height: | Size: 88 B |
Before Width: | Height: | Size: 400 B After Width: | Height: | Size: 81 B |
Before Width: | Height: | Size: 568 B After Width: | Height: | Size: 93 B |
Before Width: | Height: | Size: 348 B After Width: | Height: | Size: 94 B |
Before Width: | Height: | Size: 338 B After Width: | Height: | Size: 89 B |
Before Width: | Height: | Size: 210 B After Width: | Height: | Size: 76 B |
Before Width: | Height: | Size: 279 B After Width: | Height: | Size: 79 B |
Before Width: | Height: | Size: 262 B After Width: | Height: | Size: 78 B |
Before Width: | Height: | Size: 274 B After Width: | Height: | Size: 78 B |
Before Width: | Height: | Size: 276 B After Width: | Height: | Size: 83 B |
Before Width: | Height: | Size: 268 B After Width: | Height: | Size: 84 B |
Before Width: | Height: | Size: 302 B After Width: | Height: | Size: 83 B |
Before Width: | Height: | Size: 268 B After Width: | Height: | Size: 81 B |
Before Width: | Height: | Size: 451 B After Width: | Height: | Size: 84 B |
Before Width: | Height: | Size: 272 B After Width: | Height: | Size: 83 B |
Before Width: | Height: | Size: 306 B After Width: | Height: | Size: 84 B |
Before Width: | Height: | Size: 305 B After Width: | Height: | Size: 84 B |
Before Width: | Height: | Size: 302 B After Width: | Height: | Size: 81 B |
Before Width: | Height: | Size: 342 B After Width: | Height: | Size: 84 B |
Before Width: | Height: | Size: 268 B After Width: | Height: | Size: 75 B |
Before Width: | Height: | Size: 336 B After Width: | Height: | Size: 95 B |
Before Width: | Height: | Size: 318 B After Width: | Height: | Size: 92 B |
Before Width: | Height: | Size: 314 B After Width: | Height: | Size: 88 B |
Before Width: | Height: | Size: 309 B After Width: | Height: | Size: 88 B |
Before Width: | Height: | Size: 323 B After Width: | Height: | Size: 91 B |
Before Width: | Height: | Size: 316 B After Width: | Height: | Size: 90 B |
Before Width: | Height: | Size: 359 B After Width: | Height: | Size: 96 B |
Before Width: | Height: | Size: 352 B After Width: | Height: | Size: 95 B |
Before Width: | Height: | Size: 244 B After Width: | Height: | Size: 83 B |
Before Width: | Height: | Size: 325 B After Width: | Height: | Size: 95 B |
Before Width: | Height: | Size: 362 B After Width: | Height: | Size: 102 B |
Before Width: | Height: | Size: 379 B After Width: | Height: | Size: 99 B |
Before Width: | Height: | Size: 494 B After Width: | Height: | Size: 102 B |
Before Width: | Height: | Size: 518 B After Width: | Height: | Size: 105 B |
Before Width: | Height: | Size: 500 B After Width: | Height: | Size: 101 B |
Before Width: | Height: | Size: 96 B After Width: | Height: | Size: 71 B |
Before Width: | Height: | Size: 336 B After Width: | Height: | Size: 88 B |
Before Width: | Height: | Size: 367 B After Width: | Height: | Size: 95 B |
Before Width: | Height: | Size: 399 B After Width: | Height: | Size: 102 B |
Before Width: | Height: | Size: 369 B After Width: | Height: | Size: 88 B |
Before Width: | Height: | Size: 332 B After Width: | Height: | Size: 91 B |
Before Width: | Height: | Size: 266 B After Width: | Height: | Size: 82 B |
Before Width: | Height: | Size: 396 B After Width: | Height: | Size: 97 B |
Before Width: | Height: | Size: 203 B After Width: | Height: | Size: 77 B |
Before Width: | Height: | Size: 438 B After Width: | Height: | Size: 101 B |
Before Width: | Height: | Size: 363 B After Width: | Height: | Size: 93 B |
Before Width: | Height: | Size: 293 B After Width: | Height: | Size: 83 B |
Before Width: | Height: | Size: 230 B After Width: | Height: | Size: 81 B |
Before Width: | Height: | Size: 203 B After Width: | Height: | Size: 77 B |
Before Width: | Height: | Size: 461 B After Width: | Height: | Size: 101 B |
Before Width: | Height: | Size: 203 B After Width: | Height: | Size: 79 B |
Before Width: | Height: | Size: 280 B After Width: | Height: | Size: 88 B |
Before Width: | Height: | Size: 297 B After Width: | Height: | Size: 91 B |
Before Width: | Height: | Size: 319 B After Width: | Height: | Size: 90 B |
Before Width: | Height: | Size: 291 B After Width: | Height: | Size: 90 B |
Before Width: | Height: | Size: 250 B After Width: | Height: | Size: 82 B |
Before Width: | Height: | Size: 307 B After Width: | Height: | Size: 85 B |
Before Width: | Height: | Size: 343 B After Width: | Height: | Size: 85 B |
Before Width: | Height: | Size: 216 B After Width: | Height: | Size: 76 B |
Before Width: | Height: | Size: 227 B After Width: | Height: | Size: 78 B |
Before Width: | Height: | Size: 304 B After Width: | Height: | Size: 90 B |
Before Width: | Height: | Size: 345 B After Width: | Height: | Size: 96 B |
Before Width: | Height: | Size: 317 B After Width: | Height: | Size: 83 B |
Before Width: | Height: | Size: 465 B After Width: | Height: | Size: 106 B |
Before Width: | Height: | Size: 435 B After Width: | Height: | Size: 102 B |
Before Width: | Height: | Size: 478 B After Width: | Height: | Size: 103 B |
Before Width: | Height: | Size: 348 B After Width: | Height: | Size: 97 B |
Before Width: | Height: | Size: 408 B After Width: | Height: | Size: 99 B |
Before Width: | Height: | Size: 402 B After Width: | Height: | Size: 100 B |
Before Width: | Height: | Size: 426 B After Width: | Height: | Size: 99 B |
Before Width: | Height: | Size: 413 B After Width: | Height: | Size: 98 B |
Before Width: | Height: | Size: 394 B After Width: | Height: | Size: 97 B |
Before Width: | Height: | Size: 377 B After Width: | Height: | Size: 98 B |