Add back model bin name, currently needed if you want to use model notes (#3994)

* Add back model bin name, currently needed if you want to use model notes

* Turn into code graphics by Mhotar(tm)
This commit is contained in:
3djc
2016-11-10 21:45:07 +01:00
committed by Bertrand Songis
parent d58244ebde
commit c0837a59a6
5 changed files with 31 additions and 26 deletions
+6 -5
View File
@@ -346,7 +346,8 @@ bool menuModelSelect(event_t event)
drawModel(MODELS_LEFT, y, *it, current, selected);
}
if (selected) {
// lcdDrawText(MODELS_LEFT, LCD_H-FH-1, (*it)->name, TEXT_COLOR);
lcd->drawBitmap(5, LCD_H-FH, modelselModelNameBitmap);
lcdDrawText(22, LCD_H-FH-1, (*it)->name, TEXT_COLOR);
}
}
}
@@ -371,11 +372,11 @@ bool menuModelSelect(event_t event)
drawVerticalScrollbar(DEFAULT_SCROLLBAR_X, 7, LCD_H - 15, menuVerticalOffset, (index + 1) / 2, 4);
// Footer
lcd->drawBitmap(5, LCD_H-FH, modelselSdFreeBitmap);
lcd->drawBitmap(5, LCD_H-FH-20, modelselSdFreeBitmap);
uint32_t size = sdGetSize() / 100;
lcdDrawNumber(22, LCD_H-FH-1, size, PREC1, 0, NULL, "GB");
lcd->drawBitmap(80, LCD_H-FH, modelselModelQtyBitmap);
lcdDrawNumber(105, LCD_H-FH-1, modelslist.modelsCount);
lcdDrawNumber(22, LCD_H-FH-21, size, PREC1, 0, NULL, "GB");
lcd->drawBitmap(80, LCD_H-FH-20, modelselModelQtyBitmap);
lcdDrawNumber(105, LCD_H-FH-21, modelslist.modelsCount);
return true;
}