-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ [feat/scania-next-gen] add scania next gen symbols
Signed-off-by: JAGFx <[email protected]>
- Loading branch information
Showing
8 changed files
with
262 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
/** | ||
* @author: Emmanuel SMITH <[email protected]> | ||
* project: ets2-dashboard-skin | ||
* file: _symbols.scss | ||
* Date: 08/04/2022 | ||
* Time: 08:42 | ||
*/ | ||
|
||
@import "variable"; | ||
|
||
.bodywork { | ||
position: absolute; | ||
left: 28rem; | ||
top: 42.9rem; | ||
display: flex; | ||
width: 29.3rem; | ||
justify-content: space-between; | ||
} | ||
|
||
.indicator { | ||
position: absolute; | ||
//width: 39.3rem; | ||
top: 13.4rem; | ||
|
||
&.symbols > .symbol { | ||
font-size: 3rem; | ||
background: transparent; | ||
} | ||
|
||
&.left { | ||
left: 20rem; | ||
} | ||
&.right { | ||
left: 62.2rem; | ||
} | ||
} | ||
|
||
.general-warning { | ||
position: absolute; | ||
width: 39.3rem; | ||
top: 13.4rem; | ||
left: 23.8rem; | ||
|
||
.symbols { | ||
justify-content: flex-start; | ||
} | ||
.symbols > .symbol { | ||
width: 3.13rem; | ||
font-size: 2.6rem; | ||
background: transparent; | ||
|
||
.icon-scania-driver-safty-belt_red { | ||
font-size: 2rem; | ||
} | ||
} | ||
} | ||
|
||
.indicator-symbols.symbols { | ||
display: block; | ||
|
||
.symbol { | ||
position: absolute; | ||
font-size: 2.6rem; | ||
|
||
&.c2 { left: 5.6rem; bottom: 13.3rem; } | ||
&.c3 { left: 9.2rem; top: 42.9rem; } | ||
&.c12 { right: 9.2rem; top: 42.9rem; } | ||
&.c13 { right: 5.6rem; bottom: 13.3rem; } | ||
&.c14 { right: 2.3rem; bottom: 14.7rem; } | ||
} | ||
} | ||
|
||
.symbols { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
.symbol { | ||
width: 3.2rem; | ||
height: 2.5rem; | ||
background: #434343; | ||
margin-right: .35rem; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
font-size: 2rem; | ||
|
||
&.red { color: $cRed; } | ||
&.yellow { color: $cYellow; } | ||
&.green { color: $cGreen; } | ||
&.blue { color: $cBlue; } | ||
|
||
&:last-child{ | ||
margin-right: 0; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/components/dashboards/scania-next-gen/symbols/ScaniaNextGenBodyworkSymbols.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<template> | ||
<div class="bodywork"> | ||
<div class="symbols"> | ||
<div class="symbol"></div> | ||
<div class="symbol"></div> | ||
<div class="symbol blue"> | ||
<i | ||
v-if="telemetry2.symbols.beaconIsEnabled" | ||
class="icon-scania-rotating-beacon_blue" | ||
/> | ||
</div> | ||
<div class="symbol"></div> | ||
</div> | ||
<div class="symbols ml-2"> | ||
<div class="symbol"></div> | ||
<div class="symbol"></div> | ||
<div class="symbol"></div> | ||
<div class="symbol"></div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import TelemetryMixin from '@/mixins/TelemetryMixin'; | ||
export default { | ||
name: 'ScaniaNextGenBodyworkSymbols', | ||
mixins: [TelemetryMixin] | ||
}; | ||
</script> |
74 changes: 74 additions & 0 deletions
74
src/components/dashboards/scania-next-gen/symbols/ScaniaNextGenGeneralWarningSymbols.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<template> | ||
<div> | ||
<div class="symbols indicator left"> | ||
<div class="symbol green"> | ||
<i | ||
v-if="telemetry2.symbols.leftDirectionIsActive" | ||
class="icon-scania-direction-indicator-left_green" | ||
/> | ||
</div> | ||
</div> | ||
<div class="general-warning"> | ||
<div class="symbols"> | ||
<div class="symbol"></div> | ||
<div class="symbol"></div> | ||
<div class="symbol"></div> | ||
<div class="symbol red"> | ||
<i | ||
v-if="telemetry2.symbols.brakePressureIsActive" | ||
class="icon-scania-break-pressure_red_yellow" | ||
/> | ||
</div> | ||
<div class="symbol red"> | ||
<i | ||
v-if="telemetry2.truck.hasErrors" | ||
class="icon-scania-warning_red" | ||
/> | ||
</div> | ||
<div class="symbol blue"> | ||
<i | ||
v-if="telemetry2.symbols.mainBeamIsEnabled" | ||
class="icon-scania-main-beam_blue" | ||
/> | ||
</div> | ||
<div class="symbol yellow"> | ||
<i | ||
v-if="telemetry2.truck.hasWarnings" | ||
class="icon-scania-warning_yellow" | ||
/> | ||
</div> | ||
<div class="symbol red"> | ||
<i | ||
v-if="telemetry2.symbols.parkingBrakeIsEnabled" | ||
class="icon-scania-parking-break_red" | ||
/> | ||
</div> | ||
<div class="symbol"></div> | ||
<div class="symbol red"> | ||
<i | ||
v-if="telemetry2.truck.ignitionStart" | ||
class="icon-scania-driver-safty-belt_red" | ||
/> | ||
</div> | ||
<div class="symbol"></div> | ||
</div> | ||
</div> | ||
<div class="symbols indicator right"> | ||
<div class="symbol green"> | ||
<i | ||
v-if="telemetry2.symbols.rightDirectionIsActive" | ||
class="icon-scania-direction-indicator-right_green" | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import TelemetryMixin from '@/mixins/TelemetryMixin'; | ||
export default { | ||
name: 'ScaniaNextGenGeneralWarningSymbols', | ||
mixins: [TelemetryMixin] | ||
}; | ||
</script> |
43 changes: 43 additions & 0 deletions
43
src/components/dashboards/scania-next-gen/symbols/ScaniaNextGenIndicatorSymbols.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<template> | ||
<div class="indicator-symbols symbols"> | ||
<div class="symbol c2 yellow"> | ||
<i | ||
v-if="telemetry2.symbols.trailerLiftAxleIsEnabled" | ||
class="icon-scania-trailer-tag-axle-raised_yellow" | ||
/> | ||
</div> | ||
<div class="symbol c3 yellow"> | ||
<i | ||
v-if="telemetry2.symbols.truckLiftAxleIsEnabled" | ||
class="icon-scania-tractor-tag-axle-raised_yellow" | ||
/> | ||
</div> | ||
<div class="symbol c12 yellow"> | ||
<i | ||
v-if="telemetry2.symbols.differentialIsLocked" | ||
class="icon-scania-differential-lock_yellow" | ||
/> | ||
</div> | ||
<div class="symbol c13 green"> | ||
<i | ||
v-if="telemetry2.symbols.retarderIsActive" | ||
class="icon-scania-retarder_green" | ||
/> | ||
</div> | ||
<div class="symbol c14 yellow"> | ||
<i | ||
v-if="telemetry2.truck.hasEngineWarning" | ||
class="icon-scania-engine-failure_yellow" | ||
/> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import TelemetryMixin from '@/mixins/TelemetryMixin'; | ||
export default { | ||
name: 'ScaniaNextGenIndicatorSymbols', | ||
mixins: [TelemetryMixin] | ||
}; | ||
</script> |
84114ab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#78