-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfig.cs
69 lines (61 loc) · 1.63 KB
/
Config.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
using Dalamud.Configuration;
using Dalamud.Plugin;
using FFXIVClientStructs.FFXIV.Client.Graphics;
using System;
namespace Interjection;
[Serializable]
public class Config : IPluginConfiguration
{
private static readonly ByteColor DefaultCastColor = new()
{
R = 247,
G = 154,
B = 0,
A = 255
};
private static readonly ByteColor DefaultInterruptableCastColor = new()
{
R = 247,
G = 97,
B = 107,
A = 255
};
private static readonly ByteColor DefaultTankGemColor = new()
{
R = 0,
G = 125,
B = 255,
A = 255
};
public int Version { get; set; } = 0;
public bool Enabled;
public bool OverrideNormalCastColor;
public ByteColor NormalCastColor;
public bool OverrideInterruptableCastColor;
public ByteColor InterruptableCastColor;
public bool OverrideTankTargetEnmityGemColor;
public ByteColor TankGemColor;
public Config()
{
SetToDefaults();
}
public void SetToDefaults()
{
Enabled = true;
OverrideNormalCastColor = true;
NormalCastColor = DefaultCastColor;
OverrideInterruptableCastColor = true;
InterruptableCastColor = DefaultInterruptableCastColor;
OverrideTankTargetEnmityGemColor = true;
TankGemColor = DefaultTankGemColor;
}
[NonSerialized] private IDalamudPluginInterface _pluginInterface;
public void Initialize(IDalamudPluginInterface pluginInterface)
{
_pluginInterface = pluginInterface;
}
public void Save()
{
_pluginInterface?.SavePluginConfig(this);
}
}