chore: added a display of the timetable max speed in the active train info & tooltip

This commit is contained in:
2025-09-14 15:10:48 +02:00
parent bf9799e0c3
commit 6d1ef26ac1
4 changed files with 78 additions and 91 deletions
+12 -3
View File
@@ -9,6 +9,17 @@
<div class="text--primary">
<b>{{ trainInfo.stockList[0] }}</b> &bull; {{ trainInfo.length }}m &bull;
{{ (trainInfo.mass / 1000).toFixed(2) }}t
<span v-if="trainInfo.timetableData">
&bull; vRJ:
{{
trainInfo.timetableData?.trainMaxSpeed ||
getStockSpeedLimit(trainInfo.stockList, trainInfo.mass)
}}km/h
</span>
<span v-else class="text--grayed font--italic">
&bull; vMax:
{{ getStockSpeedLimit(trainInfo.stockList, trainInfo.mass) }}km/h
</span>
</div>
<div class="text--grayed">
@@ -46,9 +57,7 @@ export default defineComponent({
return this.mainStore.trainList.find((t) => t.id === this.tooltipStore.content);
},
lastSceneryStatus() {
}
lastSceneryStatus() {}
}
});
</script>