Deprecate ReservedPlayers in Torch cfg

Add a scrollpanel to fix clipped controls
This commit is contained in:
Brant Martin
2019-01-10 21:35:48 -05:00
parent f990d27851
commit 8b7a07ffe7
4 changed files with 99 additions and 83 deletions

View File

@@ -68,9 +68,14 @@ namespace Torch.Server
public string LastUsedTheme { get; set; } = "Torch Theme";
public bool EnableReservedSlots { get; set; } = false;
//TODO: REMOVE ME BY JULY 2019
[Obsolete("Use vanilla reserved slot config")]
public HashSet<ulong> ReservedPlayers { get; set; } = new HashSet<ulong>();
//Prevent reserved players being written to disk, but allow it to bre read
//remove this when ReservedPlayers is removed
private bool ShouldSerializeReservedPlayers() => false;
[XmlIgnore]
private string _path;