1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 14:17:26 +08:00

Update taiko with legacy colour setters

This commit is contained in:
smoogipoo 2020-08-22 00:23:08 +09:00
parent 16a2ab9dea
commit 9fbc5f3aeb
3 changed files with 7 additions and 6 deletions

View File

@ -90,7 +90,7 @@ namespace osu.Game.Rulesets.Taiko.Skinning
private void updateAccentColour()
{
backgroundLayer.Colour = accentColour;
backgroundLayer.Colour = accentColour.ToLegacyColour();
}
}
}

View File

@ -76,9 +76,9 @@ namespace osu.Game.Rulesets.Taiko.Skinning
private void updateAccentColour()
{
headCircle.AccentColour = accentColour;
body.Colour = accentColour;
end.Colour = accentColour;
headCircle.AccentColour = accentColour.ToLegacyColour();
body.Colour = accentColour.ToLegacyColour();
end.Colour = accentColour.ToLegacyColour();
}
}
}

View File

@ -2,6 +2,7 @@
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Game.Skinning;
using osuTK.Graphics;
namespace osu.Game.Rulesets.Taiko.Skinning
@ -18,9 +19,9 @@ namespace osu.Game.Rulesets.Taiko.Skinning
[BackgroundDependencyLoader]
private void load()
{
AccentColour = component == TaikoSkinComponents.CentreHit
AccentColour = (component == TaikoSkinComponents.CentreHit
? new Color4(235, 69, 44, 255)
: new Color4(67, 142, 172, 255);
: new Color4(67, 142, 172, 255)).ToLegacyColour();
}
}
}