mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 05:04:15 +01:00
97 lines
2.6 KiB
C#
97 lines
2.6 KiB
C#
using System.Numerics;
|
|
|
|
using Dalamud.Interface.Colors;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Dalamud.Interface.Style
|
|
{
|
|
#pragma warning disable SA1600
|
|
|
|
public class DalamudColors
|
|
{
|
|
[JsonProperty("a")]
|
|
public Vector4? DalamudRed { get; set; }
|
|
|
|
[JsonProperty("b")]
|
|
public Vector4? DalamudGrey { get; set; }
|
|
|
|
[JsonProperty("c")]
|
|
public Vector4? DalamudGrey2 { get; set; }
|
|
|
|
[JsonProperty("d")]
|
|
public Vector4? DalamudGrey3 { get; set; }
|
|
|
|
[JsonProperty("e")]
|
|
public Vector4? DalamudWhite { get; set; }
|
|
|
|
[JsonProperty("f")]
|
|
public Vector4? DalamudWhite2 { get; set; }
|
|
|
|
[JsonProperty("g")]
|
|
public Vector4? DalamudOrange { get; set; }
|
|
|
|
[JsonProperty("h")]
|
|
public Vector4? TankBlue { get; set; }
|
|
|
|
[JsonProperty("i")]
|
|
public Vector4? HealerGreen { get; set; }
|
|
|
|
[JsonProperty("j")]
|
|
public Vector4? DPSRed { get; set; }
|
|
|
|
public void Apply()
|
|
{
|
|
if (this.DalamudRed.HasValue)
|
|
{
|
|
ImGuiColors.DalamudRed = this.DalamudRed.Value;
|
|
}
|
|
|
|
if (this.DalamudGrey.HasValue)
|
|
{
|
|
ImGuiColors.DalamudGrey = this.DalamudGrey.Value;
|
|
}
|
|
|
|
if (this.DalamudGrey2.HasValue)
|
|
{
|
|
ImGuiColors.DalamudGrey2 = this.DalamudGrey2.Value;
|
|
}
|
|
|
|
if (this.DalamudGrey3.HasValue)
|
|
{
|
|
ImGuiColors.DalamudGrey3 = this.DalamudGrey3.Value;
|
|
}
|
|
|
|
if (this.DalamudWhite.HasValue)
|
|
{
|
|
ImGuiColors.DalamudWhite = this.DalamudWhite.Value;
|
|
}
|
|
|
|
if (this.DalamudWhite2.HasValue)
|
|
{
|
|
ImGuiColors.DalamudWhite2 = this.DalamudWhite2.Value;
|
|
}
|
|
|
|
if (this.DalamudOrange.HasValue)
|
|
{
|
|
ImGuiColors.DalamudOrange = this.DalamudOrange.Value;
|
|
}
|
|
|
|
if (this.TankBlue.HasValue)
|
|
{
|
|
ImGuiColors.TankBlue = this.TankBlue.Value;
|
|
}
|
|
|
|
if (this.HealerGreen.HasValue)
|
|
{
|
|
ImGuiColors.HealerGreen = this.HealerGreen.Value;
|
|
}
|
|
|
|
if (this.DPSRed.HasValue)
|
|
{
|
|
ImGuiColors.DPSRed = this.DPSRed.Value;
|
|
}
|
|
}
|
|
}
|
|
|
|
#pragma warning restore SA1600
|
|
}
|