mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-19 15:02:15 +01:00
Let Auto bring the back of the train to 0, hand-set or not
Auto now clears the hand-set marks before picking the couplers and is available on the last vehicle too.
This commit is contained in:
@@ -242,13 +242,13 @@ public sealed class VehicleDetails
|
||||
Cursor = _hand,
|
||||
HorizontalAlignment = HorizontalAlignment.Stretch,
|
||||
HorizontalContentAlignment = HorizontalAlignment.Center,
|
||||
IsEnabled = _consist.Count > 1 && !isLast
|
||||
IsEnabled = _consist.Count > 0
|
||||
};
|
||||
auto.Classes.Add("Flat");
|
||||
ToolTip.SetTip(auto, App.Loc["TipAutoCoupler"]);
|
||||
auto.Click += (_, _) =>
|
||||
{
|
||||
_consist.AutoConnectAll();
|
||||
_consist.AutoCouple();
|
||||
_redraw();
|
||||
Refresh();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user