mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-07 05:58:07 +01:00
Depot: per-vehicle wagon number, model path, activation after removal
The number editor was pinned to the unit's first car, so every vehicle in a multiple unit shared one number. Removing a vehicle only moved the highlight, leaving the starting vehicle and the panels on the deleted one. Drops the tab strip around the single configuration panel and shortens the consist row when the thumbnails are small.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
x:Class="StarterNG.Views.Depot">
|
||||
<!-- TabIndex follows the workflow - pick a consist, browse, build the train,
|
||||
then the editors - not the column order the grid happens to have. -->
|
||||
<Grid Margin="0" ColumnSpacing="3" RowSpacing="3">
|
||||
<Grid Name="depotGrid" Margin="0" ColumnSpacing="3" RowSpacing="3">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="270" MinWidth="220" />
|
||||
<ColumnDefinition />
|
||||
@@ -23,7 +23,7 @@
|
||||
cap fits the seven lines of the texture tab. -->
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" MinHeight="150" />
|
||||
<RowDefinition Height="1.57*" MinHeight="120" MaxHeight="207" />
|
||||
<RowDefinition Height="1.57*" MinHeight="120" MaxHeight="240" />
|
||||
<RowDefinition Height="Auto" MinHeight="140" MaxHeight="230" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
@@ -127,7 +127,8 @@
|
||||
|
||||
<!-- The configuration is the one panel here that is actually edited, so it
|
||||
gets a column of its own spanning both rows - from the top edge down to
|
||||
the consist - instead of a third of one squeezed row. -->
|
||||
the consist. No tab strip: it was a single tab naming the only thing
|
||||
the column could hold. -->
|
||||
<Border Grid.Column="2" Grid.Row="0" Grid.RowSpan="2" TabIndex="6"
|
||||
Background="{StaticResource CarbonPanelBg}"
|
||||
BorderBrush="{StaticResource CarbonBorderLight}"
|
||||
@@ -138,13 +139,9 @@
|
||||
HorizontalContentAlignment="Center"
|
||||
Click="RemoveVehicleButton_OnClick"
|
||||
Content="{Binding [RemoveVehicle], Source={x:Static starterNg:App.Loc}}" />
|
||||
<TabControl>
|
||||
<TabItem Header="{Binding [Configuration], Source={x:Static starterNg:App.Loc}}">
|
||||
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
||||
<StackPanel Name="loadsPanel" Margin="4" Grid.IsSharedSizeScope="True" />
|
||||
</ScrollViewer>
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
||||
<StackPanel Name="loadsPanel" Margin="4" Grid.IsSharedSizeScope="True" />
|
||||
</ScrollViewer>
|
||||
</DockPanel>
|
||||
</Border>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user