add DM opt in to onboarding (#21756)
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 688 KiB |
|
Before Width: | Height: | Size: 743 KiB After Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 743 KiB |
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 708 KiB After Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 708 KiB |
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 1.9 MiB After Width: | Height: | Size: 40 KiB |
BIN
selfdrive/assets/training/step18.png
Normal file
|
After Width: | Height: | Size: 1.9 MiB |
|
Before Width: | Height: | Size: 688 KiB After Width: | Height: | Size: 821 KiB |
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 897 KiB |
|
Before Width: | Height: | Size: 792 KiB After Width: | Height: | Size: 51 KiB |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 792 KiB |
|
Before Width: | Height: | Size: 1.6 MiB After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 949 KiB After Width: | Height: | Size: 1.6 MiB |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 949 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 2.1 MiB After Width: | Height: | Size: 41 KiB |
BIN
selfdrive/assets/training_wide/step18.png
Normal file
|
After Width: | Height: | Size: 2.1 MiB |
|
Before Width: | Height: | Size: 897 KiB After Width: | Height: | Size: 852 KiB |
@@ -7,11 +7,16 @@
|
||||
#include <QVBoxLayout>
|
||||
|
||||
#include "selfdrive/common/util.h"
|
||||
#include "selfdrive/common/params.h"
|
||||
#include "selfdrive/ui/qt/util.h"
|
||||
#include "selfdrive/ui/qt/widgets/input.h"
|
||||
|
||||
void TrainingGuide::mouseReleaseEvent(QMouseEvent *e) {
|
||||
if (boundingRect[currentIndex].contains(e->x(), e->y())) {
|
||||
if (currentIndex == 9) {
|
||||
const QRect yes = QRect(692, 842, 492, 148);
|
||||
Params().putBool("RecordFront", yes.contains(e->x(), e->y()));
|
||||
}
|
||||
currentIndex += 1;
|
||||
} else if (currentIndex == (boundingRect.size() - 2) && boundingRect.last().contains(e->x(), e->y())) {
|
||||
currentIndex = 0;
|
||||
|
||||
@@ -35,6 +35,7 @@ private:
|
||||
QRect(1580, 630, 215, 130),
|
||||
QRect(1210, 0, 485, 590),
|
||||
QRect(1460, 400, 375, 210),
|
||||
QRect(166, 842, 1019, 148),
|
||||
QRect(1460, 210, 300, 310),
|
||||
continueBtnStandard,
|
||||
QRect(1375, 80, 545, 1000),
|
||||
@@ -58,6 +59,7 @@ private:
|
||||
QRect(1820, 630, 180, 155),
|
||||
QRect(1360, 0, 460, 620),
|
||||
QRect(1570, 400, 375, 215),
|
||||
QRect(167, 842, 1018, 148),
|
||||
QRect(1610, 210, 295, 310),
|
||||
continueBtnWide,
|
||||
QRect(1555, 90, 610, 990),
|
||||
|
||||