PeepingTom/Peeping Tom/Configuration.cs

64 lines
2.4 KiB
C#
Raw Normal View History

2020-07-28 22:46:16 +00:00
using Dalamud.Configuration;
using Dalamud.Plugin;
using System;
using System.Numerics;
namespace PeepingTom {
[Serializable]
class Configuration : IPluginConfiguration {
public int Version { get; set; } = 1;
[NonSerialized]
private DalamudPluginInterface pi;
public bool MarkTargeted { get; set; } = false;
[System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "CA2235:Mark all non-serializable fields", Justification = "it works?")]
public Vector4 TargetedColour { get; set; } = new Vector4(0f, 1f, 0f, 1f);
public float TargetedSize { get; set; } = 2f;
public bool MarkTargeting { get; set; } = false;
[System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "CA2235:Mark all non-serializable fields", Justification = "it works?")]
public Vector4 TargetingColour { get; set; } = new Vector4(1f, 0f, 0f, 1f);
public float TargetingSize { get; set; } = 2f;
public bool DebugMarkers { get; set; } = false;
public bool KeepHistory { get; set; } = true;
public bool HistoryWhenClosed { get; set; } = true;
2020-07-28 22:46:16 +00:00
public int NumHistory { get; set; } = 5;
public bool LogParty { get; set; } = true;
public bool LogAlliance { get; set; } = false;
public bool LogInCombat { get; set; } = false;
public bool LogSelf { get; set; } = false;
2020-07-28 22:46:16 +00:00
public bool FocusTargetOnHover { get; set; } = true;
public bool OpenExamine { get; set; } = false;
2020-07-28 22:46:16 +00:00
public bool PlaySoundOnTarget { get; set; } = false;
public string SoundPath { get; set; } = null;
public float SoundVolume { get; set; } = 1f;
public int SoundDevice { get; set; } = -1;
2020-07-28 22:46:16 +00:00
public float SoundCooldown { get; set; } = 10f;
public bool PlaySoundWhenClosed { get; set; } = false;
2020-07-28 22:46:16 +00:00
public bool OpenOnLogin { get; set; } = false;
2020-07-29 18:41:17 +00:00
public bool AllowMovement { get; set; } = true;
public bool AllowResize { get; set; } = true;
2020-07-28 22:46:16 +00:00
public bool ShowInCombat { get; set; } = false;
public bool ShowInInstance { get; set; } = false;
public bool ShowInCutscenes { get; set; } = false;
public int PollFrequency { get; set; } = 100;
2020-07-28 22:46:16 +00:00
public void Initialize(DalamudPluginInterface pluginInterface) {
this.pi = pluginInterface;
}
public void Save() {
this.pi.SavePluginConfig(this);
}
}
}