diff --git a/public/images/no-vehicle-image.png b/public/images/no-vehicle-image.png new file mode 100644 index 0000000..dfff4ee Binary files /dev/null and b/public/images/no-vehicle-image.png differ diff --git a/src/components/sections/TrainImageSection.vue b/src/components/sections/TrainImageSection.vue index 666463b..d34db28 100644 --- a/src/components/sections/TrainImageSection.vue +++ b/src/components/sections/TrainImageSection.vue @@ -4,7 +4,7 @@
- + - preview + preview
@@ -23,6 +23,14 @@ export default defineComponent({ mounted() { this.$el.focus(); }, + + methods: { + onImageError(event: Event) { + if(!event.target || !(event.target instanceof HTMLImageElement)) return + + event.target.src = '/images/no-vehicle-image.png'; + }, + }, }); diff --git a/src/constants/speedLimits.json b/src/constants/speedLimits.json index 31ec1bd..72afef0 100644 --- a/src/constants/speedLimits.json +++ b/src/constants/speedLimits.json @@ -98,5 +98,56 @@ "2400000": 20 }, "none": 90 + }, + "M62": { + "passenger": { + "500000": 100, + "800000": 80, + "1200000": 60, + "2000000": 40, + "3000000": 20 + }, + "cargo": { + "500000": 100, + "800000": 80, + "1200000": 60, + "2000000": 40, + "3000000": 20 + }, + "none": 100 + }, + "ST44": { + "passenger": { + "500000": 100, + "800000": 80, + "1200000": 60, + "2000000": 40, + "3000000": 20 + }, + "cargo": { + "500000": 100, + "800000": 80, + "1200000": 60, + "2000000": 40, + "3000000": 20 + }, + "none": 100 + }, + "CTLR4C": { + "passenger": { + "500000": 100, + "800000": 80, + "1200000": 60, + "2000000": 40, + "3000000": 20 + }, + "cargo": { + "500000": 100, + "800000": 80, + "1200000": 60, + "2000000": 40, + "3000000": 20 + }, + "none": 100 } } diff --git a/src/store.ts b/src/store.ts index 159301a..54f19d0 100644 --- a/src/store.ts +++ b/src/store.ts @@ -57,7 +57,7 @@ export const useStore = defineStore({ lastFocusedElement: null as HTMLElement | null, - compatibleSimulatorVersion: '2024.2.1', + compatibleSimulatorVersion: '2024.3.1', }), getters: {