@@ -310,15 +310,17 @@ let Sc8850Display = class extends RootDisplay {
310
310
break ;
311
311
} ;
312
312
} ;
313
- upThis . font56 . getStr ( "123456789\x80\x81\x82\x83\x84\x85\x86" ) . forEach ( ( e0 , i0 ) => {
314
- let offsetX = i0 * 6 ;
315
- e0 . forEach ( ( e1 , i1 ) => {
316
- let pX = ( i1 % 5 ) + offsetX + 49 , pY = Math . floor ( i1 / 5 ) + 49 ;
317
- if ( e1 ) {
318
- upThis . #nmdb[ pY * totalWidth + pX ] = 255 ;
319
- } ;
313
+ if ( timeNow >= sum . letter . expire ) {
314
+ upThis . font56 . getStr ( "123456789\x80\x81\x82\x83\x84\x85\x86" ) . forEach ( ( e0 , i0 ) => {
315
+ let offsetX = i0 * 6 ;
316
+ e0 . forEach ( ( e1 , i1 ) => {
317
+ let pX = ( i1 % 5 ) + offsetX + 49 , pY = Math . floor ( i1 / 5 ) + 49 ;
318
+ if ( e1 ) {
319
+ upThis . #nmdb[ pY * totalWidth + pX ] = 255 ;
320
+ } ;
321
+ } ) ;
320
322
} ) ;
321
- } ) ;
323
+ } ;
322
324
switch ( upThis . #mode) {
323
325
case "?" :
324
326
case "gs" :
@@ -464,6 +466,31 @@ let Sc8850Display = class extends RootDisplay {
464
466
flipBitsInBuffer ( upThis . #nmdb, totalWidth , 48 , 12 , 97 , 44 ) ;
465
467
} ;
466
468
} ;
469
+ // Letter display
470
+ if ( timeNow < sum . letter . expire ) {
471
+ switch ( upThis . #mode) {
472
+ case "gs" :
473
+ case "sc" : {
474
+ break ;
475
+ } ;
476
+ default : {
477
+ fillBitsInBuffer ( upThis . #nmdb, totalWidth , 48 , 48 , 97 , 15 , 0 ) ;
478
+ //fillBitsInBuffer(upThis.#nmdb, totalWidth, 47, 47, 99, 1, 255);
479
+ fillBitsInBuffer ( upThis . #nmdb, totalWidth , 47 , 63 , 99 , 1 , 255 ) ;
480
+ fillBitsInBuffer ( upThis . #nmdb, totalWidth , 47 , 47 , 1 , 16 , 255 ) ;
481
+ fillBitsInBuffer ( upThis . #nmdb, totalWidth , 145 , 47 , 1 , 16 , 255 ) ;
482
+ upThis . font56 . getStr ( sum . letter . text ) . forEach ( ( e0 , i0 ) => {
483
+ let offsetX = ( i0 & 15 ) * 6 ;
484
+ e0 . forEach ( ( e1 , i1 ) => {
485
+ let pX = ( i1 % 5 ) + offsetX + 49 , pY = Math . floor ( i1 / 5 ) + 49 + 7 * ( i0 >> 4 ) ;
486
+ if ( e1 ) {
487
+ upThis . #nmdb[ pY * totalWidth + pX ] = 255 ;
488
+ } ;
489
+ } ) ;
490
+ } ) ;
491
+ } ;
492
+ } ;
493
+ } ;
467
494
// EFX and bank?
468
495
if ( upThis . device . getEffectSink ( ) [ upThis . #ch] ) {
469
496
let cx = 153 , cy = 19 ;
0 commit comments