Configuration.cs 652 B

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