Add derail state & speed to map

Add legend toggle for non-player trains.
v0.6.2 > v0.6.3
This commit is contained in:
Pyro Nicampt committed 2025-07-02 21:59:27 -05:00
1 parent 2f27c35f57
commit 58d9c476c9
4 files changed
+27 -7

No files matched your search

+14 -1
View File
@@ -259,7 +259,7 @@ let settingEntries = [
}
},
{
label: 'Cars',
label: 'Train Cars',
id: 'toggle_cars',
saveState: true,
state: true,
@@ -267,6 +267,19 @@ let settingEntries = [
MapData.layers.cars = state;
MapData.view.dynDirty = true;
},
children:[
{
label: 'Non-Player Trains',
tooltip: 'Other trains with active locomotives',
id: 'toggle_otherCars',
saveState: true,
state: true,
func: state =>{
MapData.layers.otherCars = state;
MapData.view.dynDirty = true;
},
}
]
},
]
},