2020-04-11 05:20:09 +00:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
2020-08-21 15:23:08 +00:00
|
|
|
using osu.Game.Skinning;
|
2020-04-11 05:20:09 +00:00
|
|
|
using osuTK.Graphics;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Skinning
|
|
|
|
{
|
2020-04-15 08:50:37 +00:00
|
|
|
public class LegacyHit : LegacyCirclePiece
|
2020-04-11 05:20:09 +00:00
|
|
|
{
|
|
|
|
private readonly TaikoSkinComponents component;
|
|
|
|
|
|
|
|
public LegacyHit(TaikoSkinComponents component)
|
|
|
|
{
|
|
|
|
this.component = component;
|
|
|
|
}
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
2020-04-15 08:50:37 +00:00
|
|
|
private void load()
|
2020-04-11 05:20:09 +00:00
|
|
|
{
|
2020-08-25 06:16:41 +00:00
|
|
|
AccentColour = LegacyColourCompatibility.DisallowZeroAlpha(
|
|
|
|
component == TaikoSkinComponents.CentreHit
|
|
|
|
? new Color4(235, 69, 44, 255)
|
|
|
|
: new Color4(67, 142, 172, 255));
|
2020-04-11 05:20:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|