🎨 MarlinUI for E3V2 tweaks
This commit is contained in:
@ -579,14 +579,8 @@ void DWIN_Draw_Label(const uint8_t row, const __FlashStringHelper *title) {
|
||||
}
|
||||
|
||||
void DWIN_Draw_Signed_Float(uint8_t size, uint16_t bColor, uint8_t iNum, uint8_t fNum, uint16_t x, uint16_t y, long value) {
|
||||
if (value < 0) {
|
||||
DWIN_Draw_String(true, size, Color_White, bColor, x - 8, y, F("-"));
|
||||
DWIN_Draw_FloatValue(true, true, 0, size, Color_White, bColor, iNum, fNum, x, y, -value);
|
||||
}
|
||||
else {
|
||||
DWIN_Draw_String(true, size, Color_White, bColor, x - 8, y, F(" "));
|
||||
DWIN_Draw_FloatValue(true, true, 0, size, Color_White, bColor, iNum, fNum, x, y, value);
|
||||
}
|
||||
DWIN_Draw_String(true, size, Color_White, bColor, x - 8, y, value < 0 ? F("-") : F(" "));
|
||||
DWIN_Draw_FloatValue(true, true, 0, size, Color_White, bColor, iNum, fNum, x, y, value < 0 ? -value : value);
|
||||
}
|
||||
|
||||
void Draw_Edit_Integer3(const uint8_t row, const uint16_t value, const bool active=false) {
|
||||
|
Reference in New Issue
Block a user