Replaced color usage with OpenTK's implementation.

This commit is contained in:
2019-12-28 15:41:06 -06:00
parent c9ad922341
commit 005d66840d
31 changed files with 155 additions and 139 deletions

View File

@@ -1,4 +1,6 @@
using RecrownedAthenaeum.UI.SkinSystem.Definitions;
using System;
using RecrownedAthenaeum.Graphics.UI.SkinSystem.Definitions;
using OpenTK.Graphics;
using RecrownedAthenaeum.Types;
namespace RecrownedAthenaeum.Data
@@ -74,13 +76,13 @@ namespace RecrownedAthenaeum.Data
/// </summary>
/// <param name="name">the name to be referenced by.</param>
/// <param name="color">The color value <paramref name="name"/> represents.</param>
public ColorData(string name, Color color)
public ColorData(string name, Color4 color)
{
this.name = name;
r = color.r;
g = color.g;
b = color.b;
a = color.a;
r = color.GetRedAsByte();
g = color.GetGreenAsByte();
b = color.GetBlueAsByte();
a = color.GetAlphaAsByte();
}
}