@@ -6,7 +6,8 @@ import { AudioItem, AudioItemObject, CustomAnnouncementTab } from '../../Announc
6
6
import TrainAnnouncementSystem from '../../TrainAnnouncementSystem'
7
7
8
8
interface IApproachingStationAnnouncementOptions {
9
- stationCode : string
9
+ stationCode : string ,
10
+ ticketsReady : boolean ,
10
11
mindTheGap : boolean
11
12
}
12
13
@@ -42,6 +43,10 @@ export default class WMTClass172 extends TrainAnnouncementSystem {
42
43
files . push ( 'we are now approaching' )
43
44
files . push ( { id : `stations.${ options . stationCode } ` , opts : { delayStart : 200 } } )
44
45
46
+ if ( options . ticketsReady ) {
47
+ files . push ( { id : 'please have your tickets ready' , opts : { delayStart : 300 } } )
48
+ }
49
+
45
50
if ( options . mindTheGap ) {
46
51
files . push ( { id : 'please mind the gap when leaving the train and step' , opts : { delayStart : 500 } } )
47
52
}
@@ -58,8 +63,7 @@ export default class WMTClass172 extends TrainAnnouncementSystem {
58
63
59
64
const files : AudioItem [ ] = [ ]
60
65
files . push ( 'bing bong' )
61
- files . push ( 'welcome to this service' )
62
- files . push ( { id : 'for' , opts : { delayStart : 200 } } )
66
+ files . push ( 'welcome to this service for' )
63
67
files . push ( { id : `stations.${ terminatesAtCode } ` , opts : { delayStart : 200 } } )
64
68
65
69
const remainingStops = [
@@ -96,13 +100,17 @@ export default class WMTClass172 extends TrainAnnouncementSystem {
96
100
'HBY' ,
97
101
'JEQ' ,
98
102
'KID' ,
103
+ 'LGG' ,
104
+ 'LYE' ,
105
+ 'OHL' ,
99
106
'OLT' ,
100
107
'ROW' ,
101
108
'SBJ' ,
102
109
'SGB' ,
103
110
'SMA' ,
104
111
'THW' ,
105
112
'WOF' ,
113
+ 'WOS' ,
106
114
]
107
115
108
116
readonly AvailableStationNames = {
@@ -116,9 +124,8 @@ export default class WMTClass172 extends TrainAnnouncementSystem {
116
124
component : CustomAnnouncementPane ,
117
125
defaultState : {
118
126
stationCode : this . RealAvailableStationNames [ 0 ] ,
127
+ ticketsReady : true ,
119
128
mindTheGap : true ,
120
- keepBelongings : false ,
121
- cannotUseOyster : false ,
122
129
} ,
123
130
props : {
124
131
playHandler : this . playApproachingStationAnnouncement . bind ( this ) ,
@@ -129,6 +136,11 @@ export default class WMTClass172 extends TrainAnnouncementSystem {
129
136
options : AllStationsTitleValueMap . filter ( s => this . RealAvailableStationNames . includes ( s . value ) ) ,
130
137
type : 'select' ,
131
138
} ,
139
+ ticketsReady : {
140
+ name : 'Have your tickets ready for the gates?' ,
141
+ type : 'boolean' ,
142
+ default : false ,
143
+ } ,
132
144
mindTheGap : {
133
145
name : 'Mind the gap?' ,
134
146
type : 'boolean' ,
0 commit comments