Added splitter to SectionStackSizeOverrides

This commit is contained in:
Brett Hewitson 2021-11-12 15:04:10 +10:00
parent ef2412e462
commit 4c287c4120
3 changed files with 21 additions and 2 deletions

View file

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

View file

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

View file

@ -4760,7 +4760,9 @@
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition Height="{Binding CurrentConfig.StackSizeOverrideGridHeight, 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 />
@ -4770,7 +4772,7 @@
<cctl:AnnotatedSlider Grid.Row="1" Margin="1" Label="{DynamicResource ServerSettings_ItemStackSizeMultiplierLabel}" Value="{Binding ItemStackSizeMultiplier}" Minimum="0" Maximum="100" LargeChange="5" SmallChange="1" TickFrequency="10" Suffix="{DynamicResource SliderUnits_Multiplier}" ToolTip="{DynamicResource ServerSettings_ItemStackSizeMultiplierTooltip}"/>
<GroupBox Grid.Row="2" Grid.Column="0" HorizontalAlignment="Stretch" Height="400" Style="{StaticResource GroupBoxStyle}">
<GroupBox Grid.Row="2" Grid.Column="0" HorizontalAlignment="Stretch" Style="{StaticResource GroupBoxStyle}">
<GroupBox.Header>
<StackPanel Orientation="Horizontal">
<Label Content="{DynamicResource ServerSettings_StackSizeOverrides_ItemsLabel}"/>
@ -4862,6 +4864,8 @@
</DataGrid.Columns>
</DataGrid>
</GroupBox>
<GridSplitter Grid.Row="3" Grid.Column="0" Height="5" ShowsPreview="True" HorizontalAlignment="Stretch" VerticalAlignment="Center" Opacity="0"/>
</Grid>
</Expander>