Added splitters to SectionMapSpawnerOverrides

This commit is contained in:
Brett Hewitson 2021-11-12 13:22:53 +10:00
parent 525c30b9cd
commit ef2412e462
3 changed files with 35 additions and 13 deletions

View file

@ -2623,5 +2623,17 @@ namespace ServerManagerTool {
this["SupplyCrateItemsGridHeight"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("400")]
public global::System.Windows.GridLength NPCSpawnSettingsGridHeight {
get {
return ((global::System.Windows.GridLength)(this["NPCSpawnSettingsGridHeight"]));
}
set {
this["NPCSpawnSettingsGridHeight"] = value;
}
}
}
}

View file

@ -731,5 +731,8 @@
<Setting Name="SupplyCrateItemsGridHeight" Type="System.Windows.GridLength" Scope="User">
<Value Profile="(Default)">200</Value>
</Setting>
<Setting Name="NPCSpawnSettingsGridHeight" Type="System.Windows.GridLength" Scope="User">
<Value Profile="(Default)">400</Value>
</Setting>
</Settings>
</SettingsFile>

View file

@ -4894,16 +4894,19 @@
<Grid Margin="-8,0,2,0">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition Height="{Binding CurrentConfig.NPCSpawnSettingsGridHeight, ElementName=SettingsControl, FallbackValue=400, Mode=TwoWay}" MinHeight="200"/>
<RowDefinition Height="Auto"/> <!--Splitter Row-->
<RowDefinition Height="1" MinHeight="1"/> <!--Empty Row for Last Splitter-->
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="2*" MinWidth="200"/>
<ColumnDefinition Width="Auto"/> <!--Splitter Column-->
<ColumnDefinition Width="3*" MinWidth="200"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Margin="5" Text="{DynamicResource ServerSettings_MapSpawnerOverrides_DisableLabel}" TextWrapping="Wrap" VerticalAlignment="Center" FontWeight="Bold" Foreground="DarkCyan"/>
<TextBlock Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Margin="5" Text="{DynamicResource ServerSettings_MapSpawnerOverrides_DisableLabel}" TextWrapping="Wrap" VerticalAlignment="Center" FontWeight="Bold" Foreground="DarkCyan"/>
<GroupBox Grid.Row="1" Grid.Column="0" HorizontalAlignment="Stretch" Height="400" Style="{StaticResource GroupBoxStyle}">
<GroupBox Grid.Row="1" Grid.Column="0" HorizontalAlignment="Stretch" Style="{StaticResource GroupBoxStyle}">
<GroupBox.Header>
<StackPanel Orientation="Horizontal">
<Label Content="{DynamicResource ServerSettings_MapSpawnerOverrides_ContainerLabel}"/>
@ -4982,7 +4985,9 @@
</DataGrid>
</GroupBox>
<GroupBox Grid.Row="1" Grid.Column="1" HorizontalAlignment="Stretch" Height="400" Style="{StaticResource GroupBoxStyle}">
<GridSplitter Grid.Row="1" Grid.Column="1" Width="5" ShowsPreview="True" HorizontalAlignment="Center" VerticalAlignment="Stretch" Opacity="0"/>
<GroupBox Grid.Row="1" Grid.Column="2" HorizontalAlignment="Stretch" Style="{StaticResource GroupBoxStyle}">
<GroupBox.Header>
<StackPanel Orientation="Horizontal">
<Label Content="{DynamicResource ServerSettings_MapSpawnerOverrides_EntryLabel}"/>
@ -5055,6 +5060,8 @@
</DataGrid.Columns>
</DataGrid>
</GroupBox>
<GridSplitter Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" Height="5" ShowsPreview="True" HorizontalAlignment="Stretch" VerticalAlignment="Center" Opacity="0"/>
</Grid>
</Expander>
@ -5089,14 +5096,14 @@
<RowDefinition/>
<RowDefinition/>
<RowDefinition Height="{Binding CurrentConfig.SupplyCratesGridHeight, ElementName=SettingsControl, FallbackValue=200, Mode=TwoWay}" MinHeight="200"/>
<RowDefinition/>
<RowDefinition Height="Auto"/> <!--Splitter Row-->
<RowDefinition Height="{Binding CurrentConfig.SupplyCrateItemSetsGridHeight, ElementName=SettingsControl, FallbackValue=200, Mode=TwoWay}" MinHeight="200"/>
<RowDefinition/>
<RowDefinition Height="Auto"/> <!--Splitter Row-->
<RowDefinition Height="{Binding CurrentConfig.SupplyCrateItemSetEntriesGridHeight, ElementName=SettingsControl, FallbackValue=200, Mode=TwoWay}" MinHeight="200"/>
<RowDefinition/>
<RowDefinition Height="Auto"/> <!--Splitter Row-->
<RowDefinition Height="{Binding CurrentConfig.SupplyCrateItemsGridHeight, ElementName=SettingsControl, FallbackValue=200, Mode=TwoWay}" MinHeight="200"/>
<RowDefinition/>
<RowDefinition Height="1" MinHeight="1"/>
<RowDefinition Height="Auto"/> <!--Splitter Row-->
<RowDefinition Height="1" MinHeight="1"/> <!--Empty Row for Last Splitter-->
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
@ -5623,8 +5630,8 @@
<RowDefinition/>
<RowDefinition/>
<RowDefinition Height="{Binding CurrentConfig.PreventTransferOverrideGridHeight, ElementName=SettingsControl, FallbackValue=400, Mode=TwoWay}" MinHeight="200"/>
<RowDefinition/>
<RowDefinition Height="1" MinHeight="1"/>
<RowDefinition Height="Auto"/> <!--Splitter Row-->
<RowDefinition Height="1" MinHeight="1"/> <!--Empty Row for Last Splitter-->
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />