mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-22 00:04:57 +01:00
feat(consists): the consist lists show the vehicles' minis, alike ones under one caption
The scenery's consists and the warehouse's are listed as a strip of minis at
their own 30 px, vehicles alike next to each other taken together under one
caption ("412W ×20"). A consist wider than the list scrolls sideways in its
row, with a lane for the bar under the captions. A warehouse consist's strip
follows an edit as soon as it is saved.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -98,6 +98,23 @@ public class WarehouseEditTests
|
||||
Assert.Null(Stored("edit-changed"));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void A_write_tells_the_list_the_name_and_the_entry_and_no_write_tells_nothing()
|
||||
{
|
||||
var told = new List<(string Name, string Entry)>();
|
||||
_edit.Saved += (name, entry) => told.Add((name, entry));
|
||||
var trainset = _edit.Open(Preset("edit-told"));
|
||||
|
||||
_edit.Save();
|
||||
Assert.Empty(told);
|
||||
|
||||
trainset.Vehicles.Add(trainset.Vehicles[0].Clone());
|
||||
_edit.Save();
|
||||
|
||||
Assert.Equal([("edit-told", ConsistText.Serialize(trainset))], told);
|
||||
PresetStore.Delete("edit-told");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Nothing_is_written_with_nothing_open()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user