mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Branch and Event Details moved to new Server Details section, easier to perform profile sync.
This commit is contained in:
parent
5a30f57b0b
commit
cc84a85850
26 changed files with 464 additions and 343 deletions
|
|
@ -780,30 +780,6 @@ namespace ServerManagerTool.Lib
|
|||
set { SetValue(ClusterDirOverrideProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty BranchNameProperty = DependencyProperty.Register(nameof(BranchName), typeof(string), typeof(ServerProfile), new PropertyMetadata(String.Empty));
|
||||
[DataMember]
|
||||
public string BranchName
|
||||
{
|
||||
get { return (string)GetValue(BranchNameProperty); }
|
||||
set { SetValue(BranchNameProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty BranchPasswordProperty = DependencyProperty.Register(nameof(BranchPassword), typeof(string), typeof(ServerProfile), new PropertyMetadata(String.Empty));
|
||||
[DataMember]
|
||||
public string BranchPassword
|
||||
{
|
||||
get { return (string)GetValue(BranchPasswordProperty); }
|
||||
set { SetValue(BranchPasswordProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty EventNameProperty = DependencyProperty.Register(nameof(EventName), typeof(string), typeof(ServerProfile), new PropertyMetadata(String.Empty));
|
||||
[DataMember]
|
||||
public string EventName
|
||||
{
|
||||
get { return (string)GetValue(EventNameProperty); }
|
||||
set { SetValue(EventNameProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty ProcessPriorityProperty = DependencyProperty.Register(nameof(ProcessPriority), typeof(string), typeof(ServerProfile), new PropertyMetadata("normal"));
|
||||
[DataMember]
|
||||
public string ProcessPriority
|
||||
|
|
@ -1033,6 +1009,32 @@ namespace ServerManagerTool.Lib
|
|||
}
|
||||
#endregion
|
||||
|
||||
#region Server Details
|
||||
public static readonly DependencyProperty BranchNameProperty = DependencyProperty.Register(nameof(BranchName), typeof(string), typeof(ServerProfile), new PropertyMetadata(String.Empty));
|
||||
[DataMember]
|
||||
public string BranchName
|
||||
{
|
||||
get { return (string)GetValue(BranchNameProperty); }
|
||||
set { SetValue(BranchNameProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty BranchPasswordProperty = DependencyProperty.Register(nameof(BranchPassword), typeof(string), typeof(ServerProfile), new PropertyMetadata(String.Empty));
|
||||
[DataMember]
|
||||
public string BranchPassword
|
||||
{
|
||||
get { return (string)GetValue(BranchPasswordProperty); }
|
||||
set { SetValue(BranchPasswordProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty EventNameProperty = DependencyProperty.Register(nameof(EventName), typeof(string), typeof(ServerProfile), new PropertyMetadata(String.Empty));
|
||||
[DataMember]
|
||||
public string EventName
|
||||
{
|
||||
get { return (string)GetValue(EventNameProperty); }
|
||||
set { SetValue(EventNameProperty, value); }
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Rules
|
||||
public static readonly DependencyProperty EnableHardcoreProperty = DependencyProperty.Register(nameof(EnableHardcore), typeof(bool), typeof(ServerProfile), new PropertyMetadata(false));
|
||||
[IniFileEntry(IniFiles.GameUserSettings, IniSections.GUS_ServerSettings, ServerProfileCategory.Rules, "ServerHardcore")]
|
||||
|
|
@ -5253,10 +5255,6 @@ namespace ServerManagerTool.Lib
|
|||
this.ClearValue(CrossArkClusterIdProperty);
|
||||
this.ClearValue(ClusterDirOverrideProperty);
|
||||
|
||||
this.ClearValue(BranchNameProperty);
|
||||
this.ClearValue(BranchPasswordProperty);
|
||||
this.ClearValue(EventNameProperty);
|
||||
|
||||
this.ClearValue(ProcessPriorityProperty);
|
||||
this.ClearValue(ProcessAffinityProperty);
|
||||
|
||||
|
|
@ -5610,6 +5608,14 @@ namespace ServerManagerTool.Lib
|
|||
this.ClearNullableValue(ItemStatClamps_HyperthermalInsulationProperty);
|
||||
}
|
||||
|
||||
public void ResetServerDetailsSection()
|
||||
{
|
||||
this.ClearValue(BranchNameProperty);
|
||||
this.ClearValue(BranchPasswordProperty);
|
||||
|
||||
this.ClearValue(EventNameProperty);
|
||||
}
|
||||
|
||||
public void ResetSOTFSection()
|
||||
{
|
||||
this.ClearValue(SOTF_EnabledProperty);
|
||||
|
|
@ -5731,6 +5737,9 @@ namespace ServerManagerTool.Lib
|
|||
case ServerProfileCategory.DiscordBot:
|
||||
SyncDiscordBot(sourceProfile);
|
||||
break;
|
||||
case ServerProfileCategory.ServerDetails:
|
||||
SyncServerDetails(sourceProfile);
|
||||
break;
|
||||
case ServerProfileCategory.Rules:
|
||||
SyncRulesSection(sourceProfile);
|
||||
break;
|
||||
|
|
@ -5857,10 +5866,6 @@ namespace ServerManagerTool.Lib
|
|||
this.SetValue(WebAlarmKeyProperty, sourceProfile.WebAlarmKey);
|
||||
this.SetValue(WebAlarmUrlProperty, sourceProfile.WebAlarmUrl);
|
||||
|
||||
this.SetValue(BranchNameProperty, sourceProfile.BranchName);
|
||||
this.SetValue(BranchPasswordProperty, sourceProfile.BranchPassword);
|
||||
this.SetValue(EventNameProperty, sourceProfile.EventName);
|
||||
|
||||
this.SetValue(LauncherArgsOverrideProperty, sourceProfile.LauncherArgsOverride);
|
||||
this.SetValue(LauncherArgsProperty, sourceProfile.LauncherArgs);
|
||||
this.SetValue(AdditionalArgsProperty, sourceProfile.AdditionalArgs);
|
||||
|
|
@ -6318,6 +6323,14 @@ namespace ServerManagerTool.Lib
|
|||
this.SetNullableValue(ItemStatClamps_HyperthermalInsulationProperty, sourceProfile.ItemStatClamps_HyperthermalInsulation);
|
||||
}
|
||||
|
||||
private void SyncServerDetails(ServerProfile sourceProfile)
|
||||
{
|
||||
this.SetValue(BranchNameProperty, sourceProfile.BranchName);
|
||||
this.SetValue(BranchPasswordProperty, sourceProfile.BranchPassword);
|
||||
|
||||
this.SetValue(EventNameProperty, sourceProfile.EventName);
|
||||
}
|
||||
|
||||
private void SyncServerFiles(ServerProfile sourceProfile)
|
||||
{
|
||||
this.SetValue(ServerFilesAdminsProperty, sourceProfile.ServerFilesAdmins);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue