mirror of
https://github.com/ppy/osu.git
synced 2024-11-19 03:12:54 +08:00
31 lines
857 B
C#
31 lines
857 B
C#
// 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.
|
|
|
|
#nullable disable
|
|
|
|
using osu.Framework.Allocation;
|
|
using osu.Game.Skinning;
|
|
using osuTK.Graphics;
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Skinning.Legacy
|
|
{
|
|
public class LegacyHit : LegacyCirclePiece
|
|
{
|
|
private readonly TaikoSkinComponents component;
|
|
|
|
public LegacyHit(TaikoSkinComponents component)
|
|
{
|
|
this.component = component;
|
|
}
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load()
|
|
{
|
|
AccentColour = LegacyColourCompatibility.DisallowZeroAlpha(
|
|
component == TaikoSkinComponents.CentreHit
|
|
? new Color4(235, 69, 44, 255)
|
|
: new Color4(67, 142, 172, 255));
|
|
}
|
|
}
|
|
}
|