2020-04-28 20:21:51 +00:00
|
|
|
|
using Dalamud.Configuration;
|
|
|
|
|
using Dalamud.Plugin;
|
|
|
|
|
using System;
|
|
|
|
|
|
2021-12-11 13:27:58 +00:00
|
|
|
|
namespace CurrencyAlert
|
2020-04-28 20:21:51 +00:00
|
|
|
|
{
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class Configuration : IPluginConfiguration
|
|
|
|
|
{
|
2021-12-11 13:27:58 +00:00
|
|
|
|
public int Version { get; set; } = 1;
|
|
|
|
|
|
|
|
|
|
public bool PoeticsThresholdEnabled { get; set; } = true;
|
2021-12-11 00:28:51 +00:00
|
|
|
|
public int PoeticsThreshold { get; set; } = 1500;
|
2021-12-11 13:27:58 +00:00
|
|
|
|
public bool StormSealsThresholdEnabled { get; set; } = true;
|
|
|
|
|
public int StormSealsThreshold { get; set; } = 40000;
|
2020-04-28 20:21:51 +00:00
|
|
|
|
|
|
|
|
|
// the below exist just to make saving less cumbersome
|
|
|
|
|
|
|
|
|
|
[NonSerialized]
|
2021-08-26 14:11:18 +00:00
|
|
|
|
private DalamudPluginInterface? pluginInterface;
|
2020-04-28 20:21:51 +00:00
|
|
|
|
|
|
|
|
|
public void Initialize(DalamudPluginInterface pluginInterface)
|
|
|
|
|
{
|
|
|
|
|
this.pluginInterface = pluginInterface;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Save()
|
|
|
|
|
{
|
2021-08-26 14:11:18 +00:00
|
|
|
|
this.pluginInterface!.SavePluginConfig(this);
|
2020-04-28 20:21:51 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|