forked from UnknownX7/Cammy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Configuration.cs
64 lines (50 loc) · 1.81 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Dalamud.Configuration;
namespace Cammy;
public class CameraConfigPreset
{
public enum ViewBobSetting
{
Disabled,
[Display(Name = "First Person")] FirstPerson,
[Display(Name = "Out of Combat")] OutOfCombat,
Always
}
public string Name = "New Preset";
public bool UseStartOnLogin = false;
public bool UseStartZoom = false;
public float StartZoom = 6;
public float MinZoom = 1.5f;
public float MaxZoom = 20;
public float ZoomDelta = 0.75f;
public bool UseStartFoV = false;
public float StartFoV = 0.78f;
public float MinFoV = 0.69f;
public float MaxFoV = 0.78f;
public float FoVDelta = 0.08726646751f;
public float MinVRotation = -1.483530f;
public float MaxVRotation = 0.785398f;
public float HeightOffset = 0;
public float SideOffset = 0;
public float Tilt = 0;
public float LookAtHeightOffset = Game.GetDefaultLookAtHeightOffset() ?? 0;
public ViewBobSetting ViewBobMode = ViewBobSetting.Disabled;
public int ConditionSet = -1;
public CameraConfigPreset Clone() => (CameraConfigPreset)MemberwiseClone();
public bool CheckConditionSet() => ConditionSet < 0 || IPC.QoLBarEnabled && IPC.CheckConditionSet(ConditionSet);
public void Apply(bool isLoggingIn = false) => PresetManager.ApplyPreset(this, isLoggingIn);
}
public class Configuration : PluginConfiguration, IPluginConfiguration
{
public enum DeathCamSetting
{
Disabled,
Spectate,
[Display(Name = "Free Cam")] FreeCam
}
public int Version { get; set; }
public List<CameraConfigPreset> Presets = new();
public bool EnableCameraNoClippy = false;
public DeathCamSetting DeathCamMode = DeathCamSetting.Disabled;
}