2022-10-23 02:38:58 +00:00
|
|
|
|
using Dalamud.Configuration;
|
|
|
|
|
using System.Numerics;
|
|
|
|
|
|
|
|
|
|
namespace Pal.Client
|
|
|
|
|
{
|
|
|
|
|
public class Configuration : IPluginConfiguration
|
|
|
|
|
{
|
|
|
|
|
public int Version { get; set; }
|
|
|
|
|
|
|
|
|
|
#region Saved configuration values
|
|
|
|
|
public bool FirstUse { get; set; } = true;
|
|
|
|
|
public EMode Mode { get; set; } = EMode.Offline;
|
2022-10-30 10:02:49 +00:00
|
|
|
|
public string? DebugAccountId { get; set; }
|
|
|
|
|
public string? AccountId { get; set; }
|
2022-10-23 02:38:58 +00:00
|
|
|
|
|
|
|
|
|
public bool ShowTraps { get; set; } = true;
|
|
|
|
|
public Vector4 TrapColor { get; set; } = new Vector4(1, 0, 0, 0.4f);
|
2022-10-26 21:38:29 +00:00
|
|
|
|
public bool OnlyVisibleTrapsAfterPomander { get; set; } = true;
|
|
|
|
|
|
2022-10-23 02:38:58 +00:00
|
|
|
|
public bool ShowHoard { get; set; } = true;
|
|
|
|
|
public Vector4 HoardColor { get; set; } = new Vector4(0, 1, 1, 0.4f);
|
2022-10-26 21:38:29 +00:00
|
|
|
|
public bool OnlyVisibleHoardAfterPomander { get; set; } = true;
|
|
|
|
|
|
2022-10-25 21:31:35 +00:00
|
|
|
|
public bool ShowSilverCoffers { get; set; } = false;
|
|
|
|
|
public Vector4 SilverCofferColor { get; set; } = new Vector4(1, 1, 1, 0.4f);
|
|
|
|
|
public bool FillSilverCoffers { get; set; } = true;
|
2022-10-23 02:38:58 +00:00
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
public delegate void OnSaved();
|
2022-10-30 10:02:49 +00:00
|
|
|
|
public event OnSaved? Saved;
|
2022-10-23 02:38:58 +00:00
|
|
|
|
|
|
|
|
|
public void Save()
|
|
|
|
|
{
|
|
|
|
|
Version = 1;
|
|
|
|
|
Service.PluginInterface.SavePluginConfig(this);
|
|
|
|
|
Saved?.Invoke();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum EMode
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Fetches trap locations from remote server.
|
|
|
|
|
/// </summary>
|
|
|
|
|
Online = 1,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Only shows traps found by yourself uisng a pomander of sight.
|
|
|
|
|
/// </summary>
|
|
|
|
|
Offline = 2,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|