mirror of
https://github.com/osukey/osukey.git
synced 2025-05-20 21:17:32 +09:00
Merge pull request #1063 from peppy/from-hex-hash
Allow OsuColour.FromHex to support prefix #.
This commit is contained in:
commit
cb68f18f47
@ -13,6 +13,9 @@ namespace osu.Game.Graphics
|
|||||||
|
|
||||||
public static Color4 FromHex(string hex)
|
public static Color4 FromHex(string hex)
|
||||||
{
|
{
|
||||||
|
if (hex[0] == '#')
|
||||||
|
hex = hex.Substring(1);
|
||||||
|
|
||||||
switch (hex.Length)
|
switch (hex.Length)
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user