Replaced color usage with OpenTK's implementation.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user