Add precharge progress bar
This commit is contained in:
@ -16,7 +16,7 @@ DriverViewViewBase::DriverViewViewBase() :
|
||||
__background.setColor(touchgfx::Color::getColorFromRGB(0, 0, 0));
|
||||
add(__background);
|
||||
|
||||
logo.setXY(160, 263);
|
||||
logo.setXY(160, 265);
|
||||
logo.setBitmap(touchgfx::Bitmap(BITMAP_FASTTUBE_LOGO_SMALL_WHITE_ID));
|
||||
add(logo);
|
||||
|
||||
@ -116,6 +116,23 @@ DriverViewViewBase::DriverViewViewBase() :
|
||||
fieldTypeSelection.animateToItem(0, 0);
|
||||
fieldTypeSelection.setVisible(false);
|
||||
add(fieldTypeSelection);
|
||||
|
||||
prechargeProgress.setXY(0, 265);
|
||||
prechargeProgress.setProgressIndicatorPosition(0, 0, 480, 55);
|
||||
prechargeProgress.setRange(0, 100);
|
||||
prechargeProgress.setDirection(touchgfx::AbstractDirectionProgress::RIGHT);
|
||||
prechargeProgress.setBackground(touchgfx::Bitmap(BITMAP_PRECHARGE_BG_ID));
|
||||
prechargeProgress.setColor(touchgfx::Color::getColorFromRGB(136, 255, 0));
|
||||
prechargeProgress.setValue(0);
|
||||
prechargeProgress.setVisible(false);
|
||||
add(prechargeProgress);
|
||||
|
||||
prechargeLabel.setXY(105, 274);
|
||||
prechargeLabel.setColor(touchgfx::Color::getColorFromRGB(255, 255, 255));
|
||||
prechargeLabel.setLinespacing(0);
|
||||
prechargeLabel.setTypedText(touchgfx::TypedText(T___SINGLEUSE_HMH2));
|
||||
prechargeLabel.setVisible(false);
|
||||
add(prechargeLabel);
|
||||
}
|
||||
|
||||
DriverViewViewBase::~DriverViewViewBase()
|
||||
|
||||
Reference in New Issue
Block a user