Skip to content

Commit 501688a

Browse files
authored
Merge pull request #299 from davwheat/main
Deploy
2 parents 818737d + 1e7aab8 commit 501688a

File tree

8 files changed

+24
-5
lines changed

8 files changed

+24
-5
lines changed
44.2 KB
Binary file not shown.

audio/WMT/172/stations/LGG.mp3

13.5 KB
Binary file not shown.

audio/WMT/172/stations/LYE.mp3

8.77 KB
Binary file not shown.

audio/WMT/172/stations/OHL.mp3

10.5 KB
Binary file not shown.

audio/WMT/172/stations/WOS.mp3

18.5 KB
Binary file not shown.
21.5 KB
Binary file not shown.

src/announcement-data/systems/rolling-stock/WMTClass172.ts

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import { AudioItem, AudioItemObject, CustomAnnouncementTab } from '../../Announc
66
import TrainAnnouncementSystem from '../../TrainAnnouncementSystem'
77

88
interface IApproachingStationAnnouncementOptions {
9-
stationCode: string
9+
stationCode: string,
10+
ticketsReady: boolean,
1011
mindTheGap: boolean
1112
}
1213

@@ -42,6 +43,10 @@ export default class WMTClass172 extends TrainAnnouncementSystem {
4243
files.push('we are now approaching')
4344
files.push({ id: `stations.${options.stationCode}`, opts: { delayStart: 200 } })
4445

46+
if (options.ticketsReady) {
47+
files.push({ id: 'please have your tickets ready', opts: { delayStart: 300 } })
48+
}
49+
4550
if (options.mindTheGap) {
4651
files.push({ id: 'please mind the gap when leaving the train and step', opts: { delayStart: 500 } })
4752
}
@@ -58,8 +63,7 @@ export default class WMTClass172 extends TrainAnnouncementSystem {
5863

5964
const files: AudioItem[] = []
6065
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')
6367
files.push({ id: `stations.${terminatesAtCode}`, opts: { delayStart: 200 } })
6468

6569
const remainingStops = [
@@ -96,13 +100,17 @@ export default class WMTClass172 extends TrainAnnouncementSystem {
96100
'HBY',
97101
'JEQ',
98102
'KID',
103+
'LGG',
104+
'LYE',
105+
'OHL',
99106
'OLT',
100107
'ROW',
101108
'SBJ',
102109
'SGB',
103110
'SMA',
104111
'THW',
105112
'WOF',
113+
'WOS',
106114
]
107115

108116
readonly AvailableStationNames = {
@@ -116,9 +124,8 @@ export default class WMTClass172 extends TrainAnnouncementSystem {
116124
component: CustomAnnouncementPane,
117125
defaultState: {
118126
stationCode: this.RealAvailableStationNames[0],
127+
ticketsReady: true,
119128
mindTheGap: true,
120-
keepBelongings: false,
121-
cannotUseOyster: false,
122129
},
123130
props: {
124131
playHandler: this.playApproachingStationAnnouncement.bind(this),
@@ -129,6 +136,11 @@ export default class WMTClass172 extends TrainAnnouncementSystem {
129136
options: AllStationsTitleValueMap.filter(s => this.RealAvailableStationNames.includes(s.value)),
130137
type: 'select',
131138
},
139+
ticketsReady: {
140+
name: 'Have your tickets ready for the gates?',
141+
type: 'boolean',
142+
default: false,
143+
},
132144
mindTheGap: {
133145
name: 'Mind the gap?',
134146
type: 'boolean',

src/data/changelog.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,13 @@ const changelog: IChangelogVersion[] = [
485485
date: '2025-04-25',
486486
additions: ['New Avanti West Coast Pendolino announcement system'],
487487
},
488+
{
489+
date: '2025-04-28',
490+
additions: [
491+
'New West Midlands Railway Class 172 announcement system',
492+
'New West Midlands Railway Class 323 announcement system',
493+
],
494+
},
488495
]
489496

490497
export default changelog

0 commit comments

Comments
 (0)