Added bShowCreativeMode setting

This commit is contained in:
Brett Hewitson 2021-11-20 15:01:02 +10:00
parent 1e82f3b77b
commit 243d03f71a
5 changed files with 43 additions and 7 deletions

View file

@ -1126,6 +1126,8 @@
<sys:String x:Key="ServerSettings_EnableHardcoreTooltip">Enables hardcore mode (players can not respawn, a new character must be created).</sys:String>
<sys:String x:Key="ServerSettings_EnablePvPLabel">Enable PvP</sys:String>
<sys:String x:Key="ServerSettings_EnablePvPTooltip">Enables Player vs Player mode (players are able to deal damage to or kill each other. In PvP players can also damage or destroy another tribe's buildings or kill their dinos).</sys:String>
<sys:String x:Key="ServerSettings_EnableCreativeModeLabel">Enable Creative Mode</sys:String>
<sys:String x:Key="ServerSettings_EnableCreativeModeTooltip">If enabled, allows creative mode.</sys:String>
<sys:String x:Key="ServerSettings_EnablePvECaveBuildingLabel">Enable PvE Cave Building</sys:String>
<sys:String x:Key="ServerSettings_EnablePvECaveBuildingTooltip">If enabled, allows building in caves when PvE mode is enabled.</sys:String>
<sys:String x:Key="ServerSettings_EnableCryoSicknessPVELabel">Enable PvE Cryo Sickness</sys:String>

View file

@ -974,6 +974,14 @@ namespace ServerManagerTool.Lib
set { SetValue(EnablePVPProperty, value); }
}
public static readonly DependencyProperty EnableCreativeModeProperty = DependencyProperty.Register(nameof(EnableCreativeMode), typeof(bool), typeof(ServerProfile), new PropertyMetadata(false));
[IniFileEntry(IniFiles.Game, IniSections.Game_ShooterGameMode, ServerProfileCategory.Rules, "bShowCreativeMode", WriteIfNotValue = false)]
public bool EnableCreativeMode
{
get { return (bool)GetValue(EnableCreativeModeProperty); }
set { SetValue(EnableCreativeModeProperty, value); }
}
public static readonly DependencyProperty AllowCaveBuildingPvEProperty = DependencyProperty.Register(nameof(AllowCaveBuildingPvE), typeof(bool), typeof(ServerProfile), new PropertyMetadata(false));
[IniFileEntry(IniFiles.GameUserSettings, IniSections.GUS_ServerSettings, ServerProfileCategory.Rules)]
public bool AllowCaveBuildingPvE
@ -5372,6 +5380,7 @@ namespace ServerManagerTool.Lib
{
this.ClearValue(EnableHardcoreProperty);
this.ClearValue(EnablePVPProperty);
this.ClearValue(EnableCreativeModeProperty);
this.ClearValue(AllowCaveBuildingPvEProperty);
this.ClearValue(DisableFriendlyFirePvPProperty);
this.ClearValue(DisableFriendlyFirePvEProperty);
@ -6055,6 +6064,7 @@ namespace ServerManagerTool.Lib
{
this.SetValue(EnableHardcoreProperty, sourceProfile.EnableHardcore);
this.SetValue(EnablePVPProperty, sourceProfile.EnablePVP);
this.SetValue(EnableCreativeModeProperty, sourceProfile.EnableCreativeMode);
this.SetValue(AllowCaveBuildingPvEProperty, sourceProfile.AllowCaveBuildingPvE);
this.SetValue(DisableFriendlyFirePvPProperty, sourceProfile.DisableFriendlyFirePvP);
this.SetValue(DisableFriendlyFirePvEProperty, sourceProfile.DisableFriendlyFirePvE);

View file

@ -5,7 +5,30 @@
<title>Ark Server Manager Version Feed</title>
<subtitle>This is the Ark Server Manager release version feed.</subtitle>
<link href="http://arkservermanager.freeforums.net/" />
<updated>2021-11-20T00:00:00Z</updated>
<updated>2021-11-20T01:00:00Z</updated>
<entry>
<id>urn:uuid:CAE2A89D-B098-483C-B4D4-CFFE257C066C</id>
<title>1.1.406 (1.1.406.1)</title>
<summary>1.1.406.1</summary>
<link href="" />
<updated>2021-11-20T01:00:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml" style="font-family: Arial, Verdana, Helvetica, Sans-Serif;font-size: .8em;">
<p>
<u style="font-size: .9em;">NEW</u>
<br/>
<ul>
<li>Server Settings - Rules Section - added bShowCreativeMode setting.</li>
</ul>
</p>
</div>
</content>
<author>
<name>bletch</name>
<email>bletch1971@hotmail.com</email>
</author>
</entry>
<entry>
<id>urn:uuid:79020463-01A7-466D-9B4A-1B14941C9C32</id>

View file

@ -5,21 +5,21 @@
<title>Ark Server Manager Version Feed</title>
<subtitle>This is the Ark Server Manager beta version feed.</subtitle>
<link href="http://arkservermanager.freeforums.net/" />
<updated>2021-11-20T00:00:00Z</updated>
<updated>2021-11-20T01:00:00Z</updated>
<entry>
<id>urn:uuid:79020463-01A7-466D-9B4A-1B14941C9C32</id>
<title>1.1.405 (1.1.405.1)</title>
<summary>1.1.405.1</summary>
<id>urn:uuid:CAE2A89D-B098-483C-B4D4-CFFE257C066C</id>
<title>1.1.406 (1.1.406.1)</title>
<summary>1.1.406.1</summary>
<link href="" />
<updated>2021-11-20T00:00:00Z</updated>
<updated>2021-11-20T01:00:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml" style="font-family: Arial, Verdana, Helvetica, Sans-Serif;font-size: .8em;">
<p>
<u style="font-size: .9em;">NEW</u>
<br/>
<ul>
<li>Server Settings - Rules Section - added DestroyTamesOverLevelClamp setting.</li>
<li>Server Settings - Rules Section - added bShowCreativeMode setting.</li>
</ul>
</p>
</div>

View file

@ -1714,6 +1714,7 @@
<CheckBox Grid.Row="1" Grid.Column="0" Margin="5,5,5,0" IsChecked="{Binding EnableHardcore}" Content="{DynamicResource ServerSettings_EnableHardcoreLabel}" HorizontalAlignment="Left" ToolTip="{DynamicResource ServerSettings_EnableHardcoreTooltip}"/>
<CheckBox Grid.Row="1" Grid.Column="1" Margin="5,5,5,0" IsChecked="{Binding EnablePVP}" Content="{DynamicResource ServerSettings_EnablePvPLabel}" HorizontalAlignment="Left" ToolTip="{DynamicResource ServerSettings_EnablePvPTooltip}"/>
<CheckBox Grid.Row="1" Grid.Column="2" Margin="5,5,5,0" IsChecked="{Binding EnableCreativeMode}" Content="{DynamicResource ServerSettings_EnableCreativeModeLabel}" HorizontalAlignment="Left" ToolTip="{DynamicResource ServerSettings_EnableCreativeModeTooltip}"/>
<CheckBox Grid.Row="2" Grid.Column="0" Margin="5,5,5,0" IsChecked="{Binding DisableFriendlyFirePvE}" Content="{DynamicResource ServerSettings_DisablePvEFriendlyFireLabel}" HorizontalAlignment="Left" ToolTip="{DynamicResource ServerSettings_DisablePvEFriendlyFireTooltip}" />
<CheckBox Grid.Row="2" Grid.Column="1" Margin="5,5,5,0" IsChecked="{Binding AllowCaveBuildingPvE}" Content="{DynamicResource ServerSettings_EnablePvECaveBuildingLabel}" HorizontalAlignment="Left" ToolTip="{DynamicResource ServerSettings_EnablePvECaveBuildingTooltip}"/>