-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTSCConfig.cs
More file actions
35 lines (29 loc) · 1.08 KB
/
Copy pathTSCConfig.cs
File metadata and controls
35 lines (29 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System.Collections.Generic;
using System.ComponentModel;
using Terraria.ModLoader.Config;
namespace TSC
{
public enum SpiceLevel
{
Safe,
Spicy,
NSFW
}
public class TSCConfig : ModConfig
{
public override ConfigScope Mode => ConfigScope.ClientSide;
[Header("GlobalSettings")]
[DefaultValue(SpiceLevel.NSFW)]
[DrawTicks]
public SpiceLevel CurrentSpiceLevel { get; set; }
[Header("ModCensoring")]
[CustomModConfigItem(typeof(ActiveModListElement))]
public Dictionary<string, int> CensoredMods { get; set; } = new Dictionary<string, int>();
[Header("ResourcePackCensoring")]
[CustomModConfigItem(typeof(ActiveResourcePackListElement))]
public Dictionary<string, int> CensoredResourcePacks { get; set; } = new Dictionary<string, int>();
// Hidden from the default UI, handled entirely by ActiveResourcePackListElement
[Browsable(false)]
public Dictionary<string, int> ResourcePackPriorities { get; set; } = new Dictionary<string, int>();
}
}