-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathConfiguration.cs
46 lines (37 loc) · 1.4 KB
/
Configuration.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
using Dalamud.Configuration;
using Dalamud.Plugin;
using Newtonsoft.Json;
namespace EasyZoom
{
public class Configuration : IPluginConfiguration
{
[JsonIgnore] public static readonly float FovDefault = 0.7799999714f;
[JsonIgnore] public static readonly float FovMinDefault = 0.6899999976f;
[JsonIgnore] public static readonly float FovMaxDefault = 0.7799999714f;
[JsonIgnore] public static readonly float ZoomDefault = 6f;
[JsonIgnore] public static readonly float ZoomMinDefault = 1.5f;
[JsonIgnore] public static readonly float ZoomMaxDefault = 20f;
[JsonIgnore] public static readonly float AngleMinDefault = -1.483529806f;
[JsonIgnore] public static readonly float AngleMaxDefault = 0.7853981853f;
[JsonIgnore] public static readonly float UpDownDefault = -0.2199999988f;
public int Version { get; set; }
public bool Enabled = true;
public bool NoCollision;
public float Fov = FovDefault;
public float FovMin = FovMinDefault;
public float FovMax = FovMaxDefault;
public float Zoom = ZoomDefault;
public float ZoomMin = ZoomMinDefault;
public float ZoomMax = ZoomMaxDefault;
// Add any other properties or methods here.
[JsonIgnore] private DalamudPluginInterface pluginInterface;
public void Initialize(DalamudPluginInterface pluginInterface)
{
this.pluginInterface = pluginInterface;
}
public void Save()
{
this.pluginInterface.SavePluginConfig(this);
}
}
}