HUDManager/HudSwap/Layout.cs
Anna 8614c19835 feat: add window position handling
Also add /phud for swapping between saved layouts.

Currently only the map and chat box have saved positions, although the
implementation supports additional windows. There is a checkbox when
importing to turn on or off window position saving.
2020-08-03 22:13:29 -04:00

20 lines
628 B
C#

using System;
using System.Collections.Generic;
namespace HudSwap {
[Serializable]
public class Layout {
[System.Diagnostics.CodeAnalysis.SuppressMessage("Performance", "CA1819:Properties should not return arrays")]
public byte[] Hud { get; private set; }
public Dictionary<string, Vector2<short>> Positions { get; private set; }
public string Name { get; private set; }
public Layout(string name, byte[] hud, Dictionary<string, Vector2<short>> positions) {
this.Name = name;
this.Hud = hud;
this.Positions = positions;
}
}
}