forked from aers/EnemyListDebuffs
-
Notifications
You must be signed in to change notification settings - Fork 3
/
EnemyListDebuffsPluginConfig.cs
84 lines (74 loc) · 2.19 KB
/
EnemyListDebuffsPluginConfig.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
using Dalamud.Configuration;
using Dalamud.Plugin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace EnemyListDebuffs
{
[Serializable]
public class EnemyListDebuffsPluginConfig : IPluginConfiguration
{
public int Version { get; set; } = 0;
// General
public bool Enabled = true;
public int UpdateInterval = 100;
// NodeGroup
public int GroupX = -79;
public int GroupY = 0;
public int NodeSpacing = 0;
public float Scale = 1;
public bool FillFromRight = true;
// Node
public int IconX = 0;
public int IconY = 0;
public int IconWidth = 18;
public int IconHeight = 24;
public int DurationX = -2;
public int DurationY = 16;
public int FontSize = 12;
public int DurationPadding = 2;
public Vector4 DurationTextColor = new Vector4(1, 1, 1, 1);
public Vector4 DurationEdgeColor = new Vector4(0, 0, 0, 1);
public void SetDefaults()
{
// General
Enabled = true;
UpdateInterval = 100;
// NodeGroup
GroupX = -79;
GroupY = 0;
NodeSpacing = 0;
Scale = 1;
FillFromRight = true;
// Node
IconX = 0;
IconY = 0;
IconWidth = 18;
IconHeight = 24;
DurationX = -2;
DurationY = 16;
FontSize = 12;
DurationPadding = 2;
DurationTextColor.X = 1;
DurationTextColor.Y = 1;
DurationTextColor.Z = 1;
DurationTextColor.W = 1;
DurationEdgeColor.X = 0;
DurationEdgeColor.Y = 0;
DurationEdgeColor.Z = 0;
DurationEdgeColor.W = 1;
}
[NonSerialized] private IDalamudPluginInterface _pluginInterface;
public void Initialize(IDalamudPluginInterface pluginInterface)
{
_pluginInterface = pluginInterface;
}
public void Save()
{
_pluginInterface.SavePluginConfig(this);
}
}
}