Remove StreamColour class and implement locally

This commit is contained in:
Dean Herbert
2019-05-17 18:09:11 +09:00
parent 0b076c9ca0
commit dbc42fd59e
4 changed files with 35 additions and 46 deletions

View File

@ -3,6 +3,8 @@
using System;
using Newtonsoft.Json;
using osu.Framework.Graphics.Colour;
using osuTK.Graphics;
namespace osu.Game.Online.API.Requests.Responses
{
@ -30,5 +32,35 @@ namespace osu.Game.Online.API.Requests.Responses
return Id == other.Id;
}
public ColourInfo Colour
{
get
{
switch (Name)
{
case "stable40":
return new Color4(102, 204, 255, 255);
case "stable":
return new Color4(34, 153, 187, 255);
case "beta40":
return new Color4(255, 221, 85, 255);
case "cuttingedge":
return new Color4(238, 170, 0, 255);
case "lazer":
return new Color4(237, 18, 33, 255);
case "web":
return new Color4(136, 102, 238, 255);
default:
return new Color4(0, 0, 0, 255);
}
}
}
}
}