From 00fa622e3f9c3dd60f08428f39761428417ed7c8 Mon Sep 17 00:00:00 2001 From: JAGFx Date: Tue, 10 May 2022 20:34:19 +0200 Subject: [PATCH] :bug: [feat/scania-next-gen] #78 add mask for menu and some adjustment --- doc/TRANSLATION_CHANGES.md | 5 + .../dashboard/scania-next-gen/menu-area.svg | 8 + .../dashboard/scania-next-gen/_display.scss | 20 +- .../display/ScaniaNextGenDisplay.vue | 15 +- src/components/menu/MenuTabSkins.vue | 8 +- .../skin-manuals/SkinManualScaniaNextGen.vue | 189 ++++++++++++++++++ src/data/skins.json | 4 +- src/translations/fr-FR.yaml | 4 +- 8 files changed, 235 insertions(+), 18 deletions(-) create mode 100644 public/img/dashboard/scania-next-gen/menu-area.svg create mode 100644 src/components/menu/skin-manuals/SkinManualScaniaNextGen.vue diff --git a/doc/TRANSLATION_CHANGES.md b/doc/TRANSLATION_CHANGES.md index f4df40d6..71693236 100644 --- a/doc/TRANSLATION_CHANGES.md +++ b/doc/TRANSLATION_CHANGES.md @@ -2,6 +2,11 @@ ## Next release +### Added + +- Standard mode +- In standard performance mode the vehicle is adapted for driving to suit most situations. + ## From v1.7.1 ### Added diff --git a/public/img/dashboard/scania-next-gen/menu-area.svg b/public/img/dashboard/scania-next-gen/menu-area.svg new file mode 100644 index 00000000..cca6e100 --- /dev/null +++ b/public/img/dashboard/scania-next-gen/menu-area.svg @@ -0,0 +1,8 @@ + + + + + diff --git a/src/assets/scss/dashboard/scania-next-gen/_display.scss b/src/assets/scss/dashboard/scania-next-gen/_display.scss index 1b565f62..8bdc6308 100644 --- a/src/assets/scss/dashboard/scania-next-gen/_display.scss +++ b/src/assets/scss/dashboard/scania-next-gen/_display.scss @@ -3,14 +3,14 @@ .display { position: absolute; width: 30rem; - height: 17.35rem; - left: 30.25rem; - top: 15.45rem; + height: 18.05rem; + left: 30.35rem; + top: 14.75rem; + padding-top: 1rem; // Fixme: Some blur apear for an unknown reason - //mask-image: url("/img/dashboard/scania-next-gen/menu-area.png"); - //mask-size: contain; - //mask-repeat: no-repeat; + mask-image: url("/img/dashboard/scania-next-gen/menu-area.svg"); + mask-repeat: no-repeat; display: flex; align-items: center; @@ -21,9 +21,12 @@ &.starting { background: url("/img/dashboard/scania-next-gen/6482891_619566292.png") no-repeat center; background-size: 10rem; + background-position-y: 1rem; + } &.on { background: url("/img/dashboard/scania-next-gen/menu-on.png"); + background-position-y: 1rem; } .menu-selector { @@ -198,7 +201,6 @@ position: absolute; width: 3.3rem; height: 3.5rem; - top: 6.3rem; right: 3.8rem; display: flex; justify-content: center; @@ -208,14 +210,14 @@ line-height: 1.5rem; &.shifter { - top: 6.3rem; + top: 7.3rem; right: 4.2rem; font-size: 1.4rem; line-height: 1.5rem; } &.driveMode{ - top: 6.3rem; + top: 7.3rem; left: 4.2rem; } } diff --git a/src/components/dashboards/scania-next-gen/display/ScaniaNextGenDisplay.vue b/src/components/dashboards/scania-next-gen/display/ScaniaNextGenDisplay.vue index 05eab83d..576b7836 100644 --- a/src/components/dashboards/scania-next-gen/display/ScaniaNextGenDisplay.vue +++ b/src/components/dashboards/scania-next-gen/display/ScaniaNextGenDisplay.vue @@ -1,8 +1,10 @@