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:
maj00r
2026-10-04 18:15:01 +02:00
parent b4ae9164bb
commit 384d8c1bca
8 changed files with 33 additions and 7 deletions

View File

@@ -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();
};