Added config for grid heights

This commit is contained in:
Brett Hewitson 2021-11-12 13:11:01 +10:00
parent 45765b5bb4
commit 525c30b9cd
4 changed files with 67 additions and 4 deletions

View file

@ -744,6 +744,9 @@
<setting name="PreventTransferOverrideGridHeight" serializeAs="String">
<value>400</value>
</setting>
<setting name="SupplyCratesGridHeight" serializeAs="String">
<value>200</value>
</setting>
</ServerManagerTool.Config>
</userSettings>
</configuration>

View file

@ -2575,5 +2575,53 @@ namespace ServerManagerTool {
this["PreventTransferOverrideGridHeight"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("200")]
public global::System.Windows.GridLength SupplyCratesGridHeight {
get {
return ((global::System.Windows.GridLength)(this["SupplyCratesGridHeight"]));
}
set {
this["SupplyCratesGridHeight"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("200")]
public global::System.Windows.GridLength SupplyCrateItemSetsGridHeight {
get {
return ((global::System.Windows.GridLength)(this["SupplyCrateItemSetsGridHeight"]));
}
set {
this["SupplyCrateItemSetsGridHeight"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("200")]
public global::System.Windows.GridLength SupplyCrateItemSetEntriesGridHeight {
get {
return ((global::System.Windows.GridLength)(this["SupplyCrateItemSetEntriesGridHeight"]));
}
set {
this["SupplyCrateItemSetEntriesGridHeight"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("200")]
public global::System.Windows.GridLength SupplyCrateItemsGridHeight {
get {
return ((global::System.Windows.GridLength)(this["SupplyCrateItemsGridHeight"]));
}
set {
this["SupplyCrateItemsGridHeight"] = value;
}
}
}
}

View file

@ -719,5 +719,17 @@
<Setting Name="PreventTransferOverrideGridHeight" Type="System.Windows.GridLength" Scope="User">
<Value Profile="(Default)">400</Value>
</Setting>
<Setting Name="SupplyCratesGridHeight" Type="System.Windows.GridLength" Scope="User">
<Value Profile="(Default)">200</Value>
</Setting>
<Setting Name="SupplyCrateItemSetsGridHeight" Type="System.Windows.GridLength" Scope="User">
<Value Profile="(Default)">200</Value>
</Setting>
<Setting Name="SupplyCrateItemSetEntriesGridHeight" Type="System.Windows.GridLength" Scope="User">
<Value Profile="(Default)">200</Value>
</Setting>
<Setting Name="SupplyCrateItemsGridHeight" Type="System.Windows.GridLength" Scope="User">
<Value Profile="(Default)">200</Value>
</Setting>
</Settings>
</SettingsFile>

View file

@ -5088,13 +5088,13 @@
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition Height="200" MinHeight="200"/>
<RowDefinition Height="{Binding CurrentConfig.SupplyCratesGridHeight, ElementName=SettingsControl, FallbackValue=200, Mode=TwoWay}" MinHeight="200"/>
<RowDefinition/>
<RowDefinition Height="200" MinHeight="200"/>
<RowDefinition Height="{Binding CurrentConfig.SupplyCrateItemSetsGridHeight, ElementName=SettingsControl, FallbackValue=200, Mode=TwoWay}" MinHeight="200"/>
<RowDefinition/>
<RowDefinition Height="200" MinHeight="200"/>
<RowDefinition Height="{Binding CurrentConfig.SupplyCrateItemSetEntriesGridHeight, ElementName=SettingsControl, FallbackValue=200, Mode=TwoWay}" MinHeight="200"/>
<RowDefinition/>
<RowDefinition Height="200" MinHeight="200"/>
<RowDefinition Height="{Binding CurrentConfig.SupplyCrateItemsGridHeight, ElementName=SettingsControl, FallbackValue=200, Mode=TwoWay}" MinHeight="200"/>
<RowDefinition/>
<RowDefinition Height="1" MinHeight="1"/>
</Grid.RowDefinitions>