Add a reset to default button to discord bot section.

Added Discord Bot section to the profile sync list.
This commit is contained in:
Brett Hewitson 2021-12-18 12:17:58 +10:00
parent fd0c04db9d
commit a6f2b6f912
19 changed files with 254 additions and 118 deletions

View file

@ -28,60 +28,6 @@ using WPFSharp.Globalizer;
namespace ServerManagerTool
{
public enum ServerSettingsCustomLevelsAction
{
ExportPlayerLevels,
ImportPlayerLevels,
UpdatePlayerXPCap,
ExportDinoLevels,
ImportDinoLevels,
UpdateDinoXPCap,
}
public enum ServerSettingsResetAction
{
// Sections
AdministrationSection,
RulesSection,
ChatAndNotificationsSection,
HudAndVisualsSection,
PlayerSettingsSection,
DinoSettingsSection,
EnvironmentSection,
StructuresSection,
EngramsSection,
CustomLevelsSection,
SOTFSection,
PGMSection,
MapSpawnerOverridesSection,
CraftingOverridesSection,
SupplyCrateOverridesSection,
StackSizeOverridesSection,
PreventTransferOverridesSection,
// Properties
MapNameTotalConversionProperty,
BanListProperty,
PlayerMaxXpProperty,
DinoMaxXpProperty,
PlayerBaseStatMultipliers,
PlayerPerLevelStatMultipliers,
DinoWildPerLevelStatMultipliers,
DinoTamedPerLevelStatMultipliers,
DinoTamedAddPerLevelStatMultipliers,
DinoTamedAffinityPerLevelStatMultipliers,
DinoWildMutagenLevelBoost,
DinoBredMutagenLevelBoost,
ItemStatClamps,
RCONWindowExtents,
ServerOptions,
ServerLogOptions,
}
/// <summary>
/// Interaction logic for ServerSettings.xaml
/// </summary>
partial class ServerSettingsControl : UserControl
{
private readonly GlobalizedApplication _globalizer = GlobalizedApplication.Instance;
@ -4019,6 +3965,10 @@ namespace ServerManagerTool
RefreshProcessPrioritiesList();
break;
case ServerSettingsResetAction.DiscordBotSection:
this.Settings.ResetDiscordBotSection();
break;
case ServerSettingsResetAction.ChatAndNotificationsSection:
this.Settings.ResetChatAndNotificationSection();
break;