-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPassengerWelcome.js
More file actions
122 lines (113 loc) · 3.71 KB
/
PassengerWelcome.js
File metadata and controls
122 lines (113 loc) · 3.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
import SignalWithMedia from "./reusable/SignalWithMedia.js"
import SignalPills from "./reusable/SignalPills.js"
const plugin = ({widgets, vehicle, simulator}) => {
widgets.register(
"LightDome",
SignalWithMedia("Vehicle.Cabin.Lights.IsDomeOn", {
[true]: {
type: "video",
url: "https://digitalauto-media-data.netlify.app/BatrayDomeLightOn720x360.mp4"
},
[false]: {
type: "video",
url: "https://digitalauto-media-data.netlify.app/BatrayDomeLightOff720x360.mp4"
},
},
vehicle)
)
widgets.register(
"SeatUpDown",
SignalWithMedia("Vehicle.Cabin.Seat.Row1.Pos1.Height", {
[0]: {
type: "video",
url: "https://digitalauto-media-data.netlify.app/SeatGoDown720x360.mp4"
},
[100]: {
type: "video",
url: "https://digitalauto-media-data.netlify.app/SeatGoUp720x360.mp4"
},
}, vehicle)
)
widgets.register(
"LeftDoorOpen",
SignalWithMedia("Vehicle.Cabin.Door.Row1.Left.IsOpen", {
[true]: {
type: "video",
url: "https://digitalauto-media-data.netlify.app/DoorOpen720x360.mp4"
},
[false]: {
type: "video",
url: "https://digitalauto-media-data.netlify.app/DoorClose720x360.mp4"
},
}, vehicle)
)
widgets.register(
"MirrorTilt",
SignalWithMedia("Vehicle.Body.Mirrors.Left.Tilt", {
[0]: {
type: "video",
url: "https://digitalauto-media-data.netlify.app/MirrorsOpening720x360.mp4"
},
[100]: {
type: "video",
url: "https://digitalauto-media-data.netlify.app/MirrorsClose720x360.mp4"
},
}, vehicle)
)
widgets.register(
"SeatEngaged",
SignalWithMedia("Vehicle.Cabin.Seat.Row1.Pos1.Switch.Seating.IsForwardEngaged", {
[true]: {
type: "video",
url: "https://digitalauto-media-data.netlify.app/SeatGoToFront720x360.mp4"
},
[false]: {
type: "video",
url: "https://digitalauto-media-data.netlify.app/SeatGoToRear720x360.mp4"
},
}, vehicle)
)
widgets.register(
"Tilt",
SignalWithMedia("Vehicle.Cabin.Seat.Row1.Pos1.Tilt", {
[0]: {
type: "video",
url: "https://digitalauto-media-data.netlify.app/SeatRotationFront720x360.mp4"
},
[100]: {
type: "video",
url: "https://digitalauto-media-data.netlify.app/SeatRotationBack720x360.mp44"
},
}, vehicle)
)
widgets.register(
"AmbientLight",
SignalWithMedia("Vehicle.Cabin.Lights.AmbientLight", {
[0]: {
type: "video",
url: "https://digitalauto-media-data.netlify.app/Ambience720x360.mp4"
},
[100]: {
type: "video",
url: "https://digitalauto-media-data.netlify.app/Ambience720x360.mp4"
},
}, vehicle)
)
widgets.register(
"SignalPillsConsumer",
SignalPills(
[
{
signal: "Vehicle.Cabin.Door.Row1.Left.IsOpen",
icon: `fa-gauge`
},
{
signal: "Vehicle.Cabin.Seat.Row1.Pos1.Height",
icon: `fa-gauge`
}
],
vehicle
)
)
}
export default plugin