You've already forked TEF6686_ESP32
Added dualline support for message 34, 290, 291, 297 and 303
This commit is contained in:
16
src/gui.cpp
16
src/gui.cpp
@@ -5542,13 +5542,21 @@ void Infoboxprint(const char* input) {
|
||||
|
||||
char* line2 = (char*)malloc((length - newlineIndex) * sizeof(char));
|
||||
strcpy(line2, input + newlineIndex + 1);
|
||||
|
||||
tftPrint(0, line1, 155, 48, ActiveColor, ActiveColorSmooth, 28);
|
||||
tftPrint(0, line2, 155, 78, ActiveColor, ActiveColorSmooth, 28);
|
||||
if (menu) {
|
||||
tftPrint(0, line1, 155, 48, ActiveColor, ActiveColorSmooth, 28);
|
||||
tftPrint(0, line2, 155, 78, ActiveColor, ActiveColorSmooth, 28);
|
||||
} else {
|
||||
FrequencySprite.drawString(line1, 100, 5);
|
||||
FrequencySprite.drawString(line2, 100, 25);
|
||||
}
|
||||
free(line1);
|
||||
free(line2);
|
||||
} else {
|
||||
tftPrint(0, input, 155, 78, ActiveColor, ActiveColorSmooth, 28);
|
||||
if (menu) {
|
||||
tftPrint(0, input, 155, 78, ActiveColor, ActiveColorSmooth, 28);
|
||||
} else {
|
||||
FrequencySprite.drawString(input, 100, 15);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -211,6 +211,7 @@ extern TFT_eSprite MenuInfobox;
|
||||
extern TFT_eSprite FullLineSprite;
|
||||
extern TFT_eSprite OneBigLineSprite;
|
||||
extern TFT_eSprite PSSprite;
|
||||
extern TFT_eSprite FrequencySprite;
|
||||
|
||||
void BuildAFScreen();
|
||||
void BuildMenu();
|
||||
|
||||
@@ -296,20 +296,20 @@ static const char* const myLanguage[21][305] PROGMEM = {
|
||||
"Download logbook", // 287
|
||||
"Logbook is empty", // 288
|
||||
"Go to bottom", // 289
|
||||
"Added to log", // 290
|
||||
"Update failed!", // 291
|
||||
"Entry added\nto the logbook", // 290
|
||||
"Error adding\nentry to the logbook", // 291
|
||||
"Clear logbook", // 292
|
||||
"Logbook cleared", // 293
|
||||
"Clear failed", // 294
|
||||
"Set NTP time offset", // 295
|
||||
"Autologger", // 296
|
||||
"Logbook full!", // 297
|
||||
"Can't add entry!\nLogbook is full!", // 297
|
||||
"Clock mode", // 298
|
||||
"Auto DST on NTP time", // 299
|
||||
"The logbook contains over 130 entries, which the viewer cannot process. Please download the CSV file to process it.", // 300
|
||||
"PI locked CT sync", // 301
|
||||
"Error! No RDS signal", // 302
|
||||
"Hold BW to stop", // 303
|
||||
"Hold BW button to\nstop DX scanner", // 303
|
||||
"PS only" // 304
|
||||
},
|
||||
|
||||
@@ -603,20 +603,20 @@ static const char* const myLanguage[21][305] PROGMEM = {
|
||||
"Download logboek", // 287
|
||||
"Logboek is leeg", // 288
|
||||
"Ga naar einde", // 289
|
||||
"Logboek update", // 290
|
||||
"Log mislukt!", // 291
|
||||
"Toegevoegd aan\nhet logboek", // 290
|
||||
"Toevoegen aan\nlogboek mislukt!", // 291
|
||||
"Logboek legen", // 292
|
||||
"Logboek geleegd", // 293
|
||||
"Legen mislukt", // 294
|
||||
"NTP tijdverschil\ninstellen", // 295
|
||||
"Automatisch loggen", // 296
|
||||
"Logboek vol!", // 297
|
||||
"Toevoegen mislukt!\nLogboek is vol!", // 297
|
||||
"Klok methode", // 298
|
||||
"Auto zomertijd\nop NTP tijd", // 299
|
||||
"Het logboek bevat meer dan 130 items, die de viewer niet kan verwerken. Download alstublieft het CSV-bestand om het te bekijken.", // 300
|
||||
"PI gebonden CT sync", // 301
|
||||
"Fout! Geen RDS!", // 302
|
||||
"Stoppen: BW lang indrukken", // 303
|
||||
"Houdt BW knop lang\ningedrukt om te stoppen", // 303
|
||||
"Alleen PS" // 304
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user