-
Notifications
You must be signed in to change notification settings - Fork 10
/
EnigmaConfig.cs
38 lines (33 loc) · 1008 Bytes
/
EnigmaConfig.cs
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
36
37
38
using Laugicality.UI;
using System.ComponentModel;
using Terraria;
using Terraria.ModLoader;
using Terraria.ModLoader.Config;
namespace Laugicality
{
public class EnigmaConfig : ModConfig
{
public override ConfigScope Mode => ConfigScope.ClientSide;
[Label("Mystic UI Type [0: Center, 1: Top Circle, 2: Top Stacked]")]
[DefaultValue(0)]
public int MysticUIType;
[Label("Mystic UI Animation")]
[DefaultValue(true)]
public bool MysticUIAnimated = true;
[Label("Mystic Change Sound")]
[DefaultValue(true)]
public bool MysticSound = true;
public EnigmaConfig()
{
MysticUIType = 0;
MysticUIAnimated = true;
MysticSound = true;
}
public override void OnChanged()
{
LaugicalityUI.MysticUIType = MysticUIType;
LaugicalityUI.Animated = MysticUIAnimated;
LaugicalityUI.SoundOn = MysticSound;
}
}
}