Configuration.cs 719 B

12345678910111213141516171819202122232425262728
  1. using System.Numerics;
  2. using System.Text.Json.Serialization;
  3. using Dalamud.Configuration;
  4. namespace HuntBuddy;
  5. public class Configuration: IPluginConfiguration {
  6. public int Version {
  7. get;
  8. set;
  9. }
  10. public bool EnableXivEspIntegration;
  11. public bool AutoSetEspSearchOnNextHuntCommand;
  12. public bool IncludeAreaOnMap;
  13. public bool LockWindowPositions;
  14. public bool ShowLocalHunts;
  15. public bool ShowLocalHuntIcons;
  16. public bool HideLocalHuntBackground;
  17. public bool HideCompletedHunts;
  18. public float IconScale = 1f;
  19. public Vector4 IconBackgroundColour = new(0.76f, 0.75f, 0.76f, 0.8f);
  20. [JsonIgnore] public uint IconBackgroundColourU32;
  21. public void Save() => Service.PluginInterface.SavePluginConfig(this);
  22. }