PeepingTom/Peeping Tom/Configuration.cs

64 lines
2.2 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]
2020-12-29 16:08:21 +00:00
internal class Configuration : IPluginConfiguration {
2020-07-28 22:46:16 +00:00
public int Version { get; set; } = 1;
2020-12-29 16:08:21 +00:00
private DalamudPluginInterface Interface { get; set; } = null!;
2020-07-28 22:46:16 +00:00
2020-12-29 16:08:21 +00:00
public bool MarkTargeted { get; set; }
2020-07-28 22:46:16 +00:00
2021-02-01 18:21:44 +00:00
public Vector4 TargetedColour { get; set; } = new(0f, 1f, 0f, 1f);
2020-07-28 22:46:16 +00:00
public float TargetedSize { get; set; } = 2f;
2020-12-29 16:08:21 +00:00
public bool MarkTargeting { get; set; }
2021-02-01 18:21:44 +00:00
public Vector4 TargetingColour { get; set; } = new(1f, 0f, 0f, 1f);
2020-07-28 22:46:16 +00:00
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 ShowTimestamps { get; set; } = true;
2020-07-28 22:46:16 +00:00
public bool LogParty { get; set; } = true;
2020-12-29 16:08:21 +00:00
public bool LogAlliance { get; set; }
public bool LogInCombat { get; set; }
public bool LogSelf { get; set; }
2020-07-28 22:46:16 +00:00
public bool FocusTargetOnHover { get; set; } = true;
public bool OpenExamine { get; set; }
2020-12-29 16:08:21 +00:00
public bool PlaySoundOnTarget { get; set; }
public string? SoundPath { get; set; }
public float SoundVolume { get; set; } = 1f;
2022-08-21 19:30:25 +00:00
[Obsolete("use new", true)]
public int SoundDevice { get; set; } = -1;
2022-08-21 19:30:25 +00:00
public Guid SoundDeviceNew { get; set; } = Guid.Empty;
2020-07-28 22:46:16 +00:00
public float SoundCooldown { get; set; } = 10f;
2020-12-29 16:08:21 +00:00
public bool PlaySoundWhenClosed { get; set; }
2020-07-28 22:46:16 +00:00
2020-12-29 16:08:21 +00:00
public bool OpenOnLogin { get; set; }
2020-07-29 18:41:17 +00:00
public bool AllowMovement { get; set; } = true;
public bool AllowResize { get; set; } = true;
2020-12-29 16:08:21 +00:00
public bool ShowInCombat { get; set; }
public bool ShowInInstance { get; set; }
public bool ShowInCutscenes { get; set; }
2020-07-28 22:46:16 +00:00
public int PollFrequency { get; set; } = 100;
2020-07-28 22:46:16 +00:00
public void Initialize(DalamudPluginInterface pluginInterface) {
2020-12-29 16:08:21 +00:00
this.Interface = pluginInterface;
2020-07-28 22:46:16 +00:00
}
public void Save() {
2020-12-29 16:08:21 +00:00
this.Interface.SavePluginConfig(this);
2020-07-28 22:46:16 +00:00
}
}
}