HUDManager/HudSwap/Configuration.cs
Anna 3fde80aed1 feat: infinite layout slots
Add a system to save layout slots and restore them, effectively
increasing the number of slots to an infinite amount.

Also add crafting and gathering layout swaps and make the UI more
reasonable.

Refactor out the combo boxes.
2020-07-29 21:01:22 -04:00

35 lines
1003 B
C#

using Dalamud.Configuration;
using Dalamud.Plugin;
using System;
using System.Collections.Generic;
namespace HudSwap {
[Serializable]
public class Configuration : IPluginConfiguration {
public int Version { get; set; } = 1;
[NonSerialized]
private DalamudPluginInterface pi;
public bool SwapsEnabled { get; set; } = false;
public Guid defaultLayout = Guid.Empty;
public Guid combatLayout = Guid.Empty;
public Guid weaponDrawnLayout = Guid.Empty;
public Guid instanceLayout = Guid.Empty;
public Guid craftingLayout = Guid.Empty;
public Guid gatheringLayout = Guid.Empty;
public Dictionary<Guid, Tuple<string, byte[]>> Layouts { get; } = new Dictionary<Guid, Tuple<string, byte[]>>();
public void Initialize(DalamudPluginInterface pluginInterface) {
this.pi = pluginInterface;
}
public void Save() {
this.pi.SavePluginConfig(this);
}
}
}