1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-30 12:42:56 +08:00
osu-lazer/osu.Game.Rulesets.Taiko/Skinning/Legacy/LegacyHit.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
846 B
C#
Raw Normal View History

2020-04-11 13:20:09 +08: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;
using osu.Game.Skinning;
2020-04-11 13:20:09 +08:00
using osuTK.Graphics;
2020-12-07 11:30:25 +08:00
namespace osu.Game.Rulesets.Taiko.Skinning.Legacy
2020-04-11 13:20:09 +08:00
{
public partial class LegacyHit : LegacyCirclePiece
2020-04-11 13:20:09 +08:00
{
private readonly TaikoSkinComponents component;
public LegacyHit(TaikoSkinComponents component)
{
this.component = component;
}
[BackgroundDependencyLoader]
private void load()
2020-04-11 13:20:09 +08:00
{
2020-08-25 14:16:41 +08:00
AccentColour = LegacyColourCompatibility.DisallowZeroAlpha(
component == TaikoSkinComponents.CentreHit
? new Color4(235, 69, 44, 255)
: new Color4(67, 142, 172, 255));
2020-04-11 13:20:09 +08:00
}
}
}