2021-03-08 15:03:11 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Dalamud.Configuration;
|
|
|
|
|
using Dalamud.Plugin;
|
|
|
|
|
|
|
|
|
|
namespace HUD_Manager.Configuration {
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class Config : IPluginConfiguration {
|
2021-03-13 21:10:23 +00:00
|
|
|
|
public const int LatestVersion = 4;
|
|
|
|
|
|
|
|
|
|
public int Version { get; set; } = LatestVersion;
|
2021-03-08 15:03:11 +00:00
|
|
|
|
|
|
|
|
|
private DalamudPluginInterface Interface { get; set; } = null!;
|
|
|
|
|
|
|
|
|
|
public bool FirstRun { get; set; } = true;
|
|
|
|
|
public bool UnderstandsRisks { get; set; }
|
|
|
|
|
|
|
|
|
|
public bool ImportPositions { get; set; }
|
|
|
|
|
public bool SwapsEnabled { get; set; }
|
|
|
|
|
|
|
|
|
|
public HudSlot StagingSlot { get; set; } = HudSlot.Four;
|
|
|
|
|
|
2021-03-13 21:10:23 +00:00
|
|
|
|
public PositioningMode PositioningMode { get; set; } = PositioningMode.Percentage;
|
|
|
|
|
|
2021-03-08 15:03:11 +00:00
|
|
|
|
public Dictionary<Guid, SavedLayout> Layouts { get; } = new();
|
|
|
|
|
|
|
|
|
|
public List<HudConditionMatch> HudConditionMatches { get; } = new();
|
|
|
|
|
|
|
|
|
|
public void Initialize(DalamudPluginInterface pluginInterface) {
|
|
|
|
|
this.Interface = pluginInterface;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Save() {
|
|
|
|
|
this.Interface.SavePluginConfig(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|