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:
parent
16a2ab9dea
commit
9fbc5f3aeb
@ -90,7 +90,7 @@ namespace osu.Game.Rulesets.Taiko.Skinning
|
||||
|
||||
private void updateAccentColour()
|
||||
{
|
||||
backgroundLayer.Colour = accentColour;
|
||||
backgroundLayer.Colour = accentColour.ToLegacyColour();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user