Added missing server options

This commit is contained in:
Brett Hewitson 2021-06-06 12:58:35 +10:00
parent dd5dc25f7e
commit ddc1361673
3 changed files with 69 additions and 5 deletions

View file

@ -1282,16 +1282,25 @@
<sys:String x:Key="ServerSettings_LimitNonPlayerDroppedItemsCountLabel">Limit Non Player Dropped Items Count</sys:String>
<sys:String x:Key="ServerSettings_LimitNonPlayerDroppedItemsCountTooltip">Limit the number of droppeditems in an area (together with LimitNonPlayerDroppedItemsRange).</sys:String>
<sys:String x:Key="ServerSettings_AllowTekSuitPowersInGenesisLabel">Allow TekSuit Powers</sys:String>
<sys:String x:Key="ServerSettings_AllowTekSuitPowersInGenesisTooltip">If enabled, will allow the player to use TekSuit Powers on the Genesis map.</sys:String>
<sys:String x:Key="ServerSettings_AllowTekSuitPowersInGenesisLabel">Allow TEK Suit Powers</sys:String>
<sys:String x:Key="ServerSettings_AllowTekSuitPowersInGenesisTooltip">If enabled, will allow the player to use TEK Suit Powers on the Genesis map.</sys:String>
<sys:String x:Key="ServerSettings_DisableGenesisMissionsLabel">Disable Missions</sys:String>
<sys:String x:Key="ServerSettings_DisableGenesisMissionsTooltip">if enabled, will disable all missions on the Genesis map.</sys:String>
<sys:String x:Key="ServerSettings_DisableDefaultMapItemSetsLabel">Disable TEK Suit on Spawn</sys:String>
<sys:String x:Key="ServerSettings_DisableDefaultMapItemSetsTooltip">If enabled, will prevent the player spawning with the TEK Suit.</sys:String>
<sys:String x:Key="ServerSettings_HexagonsLabel">Hexagons</sys:String>
<sys:String x:Key="ServerSettings_DisableHexagonStoreLabel">Disable Hexagon Store</sys:String>
<sys:String x:Key="ServerSettings_DisableHexagonStoreTooltip">Is enabled, the hexagon store will be disabled.</sys:String>
<sys:String x:Key="ServerSettings_HexStoreAllowOnlyEngramTradeOptionLabel">Allow Only Engram Points Trade</sys:String>
<sys:String x:Key="ServerSettings_HexStoreAllowOnlyEngramTradeOptionTooltip">Is enabled, only engram points can be sold on the Hexagon store.</sys:String>
<sys:String x:Key="ServerSettings_MaxHexagonsPerCharacterLabel">Max Hexagons per Character</sys:String>
<sys:String x:Key="ServerSettings_MaxHexagonsPerCharacterTooltip">Specifies the maximum number of hexagons that each player can have.</sys:String>
<sys:String x:Key="ServerSettings_HexagonRewardMultiplierLabel">Hexagon Reward Multiplier</sys:String>
<sys:String x:Key="ServerSettings_HexagonRewardMultiplierTooltip">Specifies the multiplier for the hexagons rewards.</sys:String>
<sys:String x:Key="ServerSettings_HexagonCostMultiplierLabel">Hexagon Cost Multiplier</sys:String>
<sys:String x:Key="ServerSettings_HexagonCostMultiplierTooltip">Specifies the multiplier for the hexagon cost of items.</sys:String>
<sys:String x:Key="ServerSettings_EnableCryopodNerfLabel">Enable Cryopod Nerf</sys:String>
<sys:String x:Key="ServerSettings_EnableCryopodNerfTooltip">If enabled, will adjust the amount of damage a creature does, for a period of time, after it has been released from a cryopod.</sys:String>

View file

@ -1579,6 +1579,14 @@ namespace ServerManagerTool.Lib
set { SetValue(DisableGenesisMissionsProperty, value); }
}
public static readonly DependencyProperty DisableDefaultMapItemSetsProperty = DependencyProperty.Register(nameof(DisableDefaultMapItemSets), typeof(bool), typeof(ServerProfile), new PropertyMetadata(false));
[IniFileEntry(IniFiles.Game, IniSections.Game_ShooterGameMode, ServerProfileCategory.Rules, "bDisableDefaultMapItemSets")]
public bool DisableDefaultMapItemSets
{
get { return (bool)GetValue(DisableDefaultMapItemSetsProperty); }
set { SetValue(DisableDefaultMapItemSetsProperty, value); }
}
public static readonly DependencyProperty EnableCryoSicknessPVEProperty = DependencyProperty.Register(nameof(EnableCryoSicknessPVE), typeof(bool), typeof(ServerProfile), new PropertyMetadata(false));
[IniFileEntry(IniFiles.GameUserSettings, IniSections.GUS_ServerSettings, ServerProfileCategory.Rules)]
public bool EnableCryoSicknessPVE
@ -1627,13 +1635,37 @@ namespace ServerManagerTool.Lib
set { SetValue(MaxHexagonsPerCharacterProperty, value); }
}
public static readonly DependencyProperty DisableHexagonStoreProperty = DependencyProperty.Register(nameof(DisableHexagonStore), typeof(bool), typeof(ServerProfile), new PropertyMetadata(false));
[IniFileEntry(IniFiles.Game, IniSections.Game_ShooterGameMode, ServerProfileCategory.Rules, "bDisableHexagonStore", ConditionedOn = nameof(DisableHexagonStore))]
public bool DisableHexagonStore
{
get { return (bool)GetValue(DisableHexagonStoreProperty); }
set { SetValue(DisableHexagonStoreProperty, value); }
}
public static readonly DependencyProperty HexStoreAllowOnlyEngramTradeOptionProperty = DependencyProperty.Register(nameof(HexStoreAllowOnlyEngramTradeOption), typeof(bool), typeof(ServerProfile), new PropertyMetadata(false));
[IniFileEntry(IniFiles.Game, IniSections.Game_ShooterGameMode, ServerProfileCategory.Rules, "bHexStoreAllowOnlyEngramTradeOption", ConditionedOn = nameof(HexStoreAllowOnlyEngramTradeOption))]
public bool HexStoreAllowOnlyEngramTradeOption
{
get { return (bool)GetValue(HexStoreAllowOnlyEngramTradeOptionProperty); }
set { SetValue(HexStoreAllowOnlyEngramTradeOptionProperty, value); }
}
public static readonly DependencyProperty HexagonRewardMultiplierProperty = DependencyProperty.Register(nameof(HexagonRewardMultiplier), typeof(float), typeof(ServerProfile), new PropertyMetadata(1.0f));
[IniFileEntry(IniFiles.Game, IniSections.Game_ShooterGameMode, ServerProfileCategory.Rules)]
[IniFileEntry(IniFiles.Game, IniSections.Game_ShooterGameMode, ServerProfileCategory.Rules, "BaseHexagonRewardMultiplier")]
public float HexagonRewardMultiplier
{
get { return (float)GetValue(HexagonRewardMultiplierProperty); }
set { SetValue(HexagonRewardMultiplierProperty, value); }
}
public static readonly DependencyProperty HexagonCostMultiplierProperty = DependencyProperty.Register(nameof(HexagonCostMultiplier), typeof(float), typeof(ServerProfile), new PropertyMetadata(1.0f));
[IniFileEntry(IniFiles.Game, IniSections.Game_ShooterGameMode, ServerProfileCategory.Rules)]
public float HexagonCostMultiplier
{
get { return (float)GetValue(HexagonCostMultiplierProperty); }
set { SetValue(HexagonCostMultiplierProperty, value); }
}
#endregion
#region Chat and Notifications

View file

@ -2320,18 +2320,41 @@
</Grid>
</GroupBox>
<GroupBox Header="{DynamicResource Mod_Genesis2}" Style="{StaticResource GroupBoxStyle}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<CheckBox Grid.Row="0" Grid.Column="0" Margin="5,5,5,0" IsChecked="{Binding DisableDefaultMapItemSets}" Content="{DynamicResource ServerSettings_DisableDefaultMapItemSetsLabel}" HorizontalAlignment="Left" ToolTip="{DynamicResource ServerSettings_DisableDefaultMapItemSetsTooltip}"/>
</Grid>
</GroupBox>
<GroupBox Header="{DynamicResource ServerSettings_HexagonsLabel}" Style="{StaticResource GroupBoxStyle}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<cctl:AnnotatedSlider Grid.Row="0" Margin="5,5,5,0" Label="{DynamicResource ServerSettings_MaxHexagonsPerCharacterLabel}" Value="{Binding MaxHexagonsPerCharacter}" Suffix="" Minimum="0" Maximum="100000000" SmallChange="100" LargeChange="1000" TickFrequency="5000" ToolTip="{DynamicResource ServerSettings_MaxHexagonsPerCharacterTooltip}"/>
<cctl:AnnotatedSlider Grid.Row="1" Margin="5,5,5,0" Label="{DynamicResource ServerSettings_HexagonRewardMultiplierLabel}" Value="{Binding HexagonRewardMultiplier}" Suffix="{DynamicResource SliderUnits_Multiplier}" Minimum="0" Maximum="10" SmallChange="0.1" LargeChange="1" TickFrequency="1" ToolTip="{DynamicResource ServerSettings_HexagonRewardMultiplierTooltip}"/>
<CheckBox Grid.Row="0" Grid.Column="0" Margin="5,5,5,0" IsChecked="{Binding DisableHexagonStore}" Content="{DynamicResource ServerSettings_DisableHexagonStoreLabel}" HorizontalAlignment="Left" ToolTip="{DynamicResource ServerSettings_DisableHexagonStoreTooltip}"/>
<CheckBox Grid.Row="0" Grid.Column="1" Margin="5,5,5,0" IsChecked="{Binding HexStoreAllowOnlyEngramTradeOption}" Content="{DynamicResource ServerSettings_HexStoreAllowOnlyEngramTradeOptionLabel}" HorizontalAlignment="Left" ToolTip="{DynamicResource ServerSettings_HexStoreAllowOnlyEngramTradeOptionTooltip}"/>
<cctl:AnnotatedSlider Grid.Row="1" Grid.ColumnSpan="3" Margin="5,5,5,0" Label="{DynamicResource ServerSettings_MaxHexagonsPerCharacterLabel}" Value="{Binding MaxHexagonsPerCharacter}" Suffix="" Minimum="0" Maximum="100000000" SmallChange="100" LargeChange="1000" TickFrequency="5000" ToolTip="{DynamicResource ServerSettings_MaxHexagonsPerCharacterTooltip}"/>
<cctl:AnnotatedSlider Grid.Row="2" Grid.ColumnSpan="3" Margin="5,5,5,0" Label="{DynamicResource ServerSettings_HexagonRewardMultiplierLabel}" Value="{Binding HexagonRewardMultiplier}" Suffix="{DynamicResource SliderUnits_Multiplier}" Minimum="0" Maximum="10" SmallChange="0.1" LargeChange="1" TickFrequency="1" ToolTip="{DynamicResource ServerSettings_HexagonRewardMultiplierTooltip}"/>
<cctl:AnnotatedSlider Grid.Row="3" Grid.ColumnSpan="3" Margin="5,5,5,0" Label="{DynamicResource ServerSettings_HexagonCostMultiplierLabel}" Value="{Binding HexagonCostMultiplier}" Suffix="{DynamicResource SliderUnits_Multiplier}" Minimum="0" Maximum="10" SmallChange="0.1" LargeChange="1" TickFrequency="1" ToolTip="{DynamicResource ServerSettings_HexagonCostMultiplierTooltip}"/>
</Grid>
</GroupBox>
</StackPanel>