2023-03-06 23:42:01 +01:00
|
|
|
/*********************************************************************************/
|
|
|
|
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
|
|
|
|
/*********************************************************************************/
|
|
|
|
#include <gui_generated/missionselect_screen/MissionSelectViewBase.hpp>
|
|
|
|
#include <touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp>
|
|
|
|
#include <touchgfx/Color.hpp>
|
|
|
|
#include <texts/TextKeysAndLanguages.hpp>
|
|
|
|
#include <images/BitmapDatabase.hpp>
|
|
|
|
|
|
|
|
MissionSelectViewBase::MissionSelectViewBase()
|
|
|
|
{
|
|
|
|
touchgfx::CanvasWidgetRenderer::setupBuffer(canvasBuffer, CANVAS_BUFFER_SIZE);
|
|
|
|
|
|
|
|
__background.setPosition(0, 0, 480, 320);
|
|
|
|
__background.setColor(touchgfx::Color::getColorFromRGB(0, 0, 0));
|
|
|
|
add(__background);
|
|
|
|
|
|
|
|
prompt.setXY(41, 0);
|
|
|
|
prompt.setColor(touchgfx::Color::getColorFromRGB(255, 255, 255));
|
|
|
|
prompt.setLinespacing(0);
|
|
|
|
prompt.setTypedText(touchgfx::TypedText(T___SINGLEUSE_6GPV));
|
|
|
|
add(prompt);
|
|
|
|
|
|
|
|
missionList.setXY(0, 48);
|
|
|
|
missionList.setDirection(touchgfx::SOUTH);
|
|
|
|
|
|
|
|
missionList.add(accel);
|
|
|
|
|
|
|
|
missionList.add(skidpad);
|
|
|
|
|
|
|
|
missionList.add(autox);
|
|
|
|
|
|
|
|
missionList.add(trackdrive);
|
|
|
|
|
|
|
|
missionList.add(ebs);
|
|
|
|
|
|
|
|
missionList.add(inspection);
|
|
|
|
|
|
|
|
missionList.add(manual);
|
|
|
|
|
2023-03-07 20:13:28 +01:00
|
|
|
lastLine.setPosition(0, 210, 480, 2);
|
|
|
|
lastLinePainter.setColor(touchgfx::Color::getColorFromRGB(170, 170, 170));
|
|
|
|
lastLine.setPainter(lastLinePainter);
|
|
|
|
lastLine.setStart(0, 0);
|
|
|
|
lastLine.setEnd(480, 0);
|
|
|
|
lastLine.setLineWidth(5);
|
|
|
|
lastLine.setLineEndingStyle(touchgfx::Line::ROUND_CAP_ENDING);
|
|
|
|
missionList.add(lastLine);
|
|
|
|
|
2023-03-06 23:42:01 +01:00
|
|
|
add(missionList);
|
|
|
|
|
2023-03-07 20:13:28 +01:00
|
|
|
logo.setXY(160, 263);
|
|
|
|
logo.setBitmap(touchgfx::Bitmap(BITMAP_LOGO_DV_SMALL_WHITE_ID));
|
|
|
|
add(logo);
|
2023-03-06 23:42:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
MissionSelectViewBase::~MissionSelectViewBase()
|
|
|
|
{
|
|
|
|
touchgfx::CanvasWidgetRenderer::resetBuffer();
|
|
|
|
}
|
|
|
|
|
|
|
|
void MissionSelectViewBase::setupScreen()
|
|
|
|
{
|
|
|
|
accel.initialize();
|
|
|
|
skidpad.initialize();
|
|
|
|
autox.initialize();
|
|
|
|
trackdrive.initialize();
|
|
|
|
ebs.initialize();
|
|
|
|
inspection.initialize();
|
|
|
|
manual.initialize();
|
|
|
|
}
|