add DM opt in to onboarding (#21756)

pull/21757/head
Adeeb Shihadeh 4 years ago committed by GitHub
parent adb079efcd
commit cae10844c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. BIN
      selfdrive/assets/training/step10.png
  2. BIN
      selfdrive/assets/training/step11.png
  3. BIN
      selfdrive/assets/training/step12.png
  4. BIN
      selfdrive/assets/training/step13.png
  5. BIN
      selfdrive/assets/training/step14.png
  6. BIN
      selfdrive/assets/training/step15.png
  7. BIN
      selfdrive/assets/training/step16.png
  8. BIN
      selfdrive/assets/training/step17.png
  9. BIN
      selfdrive/assets/training/step18.png
  10. BIN
      selfdrive/assets/training/step9.png
  11. BIN
      selfdrive/assets/training_wide/step10.png
  12. BIN
      selfdrive/assets/training_wide/step11.png
  13. BIN
      selfdrive/assets/training_wide/step12.png
  14. BIN
      selfdrive/assets/training_wide/step13.png
  15. BIN
      selfdrive/assets/training_wide/step14.png
  16. BIN
      selfdrive/assets/training_wide/step15.png
  17. BIN
      selfdrive/assets/training_wide/step16.png
  18. BIN
      selfdrive/assets/training_wide/step17.png
  19. BIN
      selfdrive/assets/training_wide/step18.png
  20. BIN
      selfdrive/assets/training_wide/step9.png
  21. 5
      selfdrive/ui/qt/offroad/onboarding.cc
  22. 2
      selfdrive/ui/qt/offroad/onboarding.h

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 688 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 743 KiB

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 743 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 708 KiB

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 708 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 688 KiB

After

Width:  |  Height:  |  Size: 821 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 897 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 792 KiB

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 792 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 949 KiB

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 949 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 MiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

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),

Loading…
Cancel
Save