2020-04-11 04:14:34 +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;
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
using osu.Framework.Graphics.Shapes;
|
|
|
|
using osu.Game.Graphics;
|
2021-06-11 05:20:08 +00:00
|
|
|
using osu.Game.Rulesets.Taiko.Objects;
|
2020-04-11 04:14:34 +00:00
|
|
|
using osuTK;
|
|
|
|
using osuTK.Graphics;
|
|
|
|
|
2020-12-07 03:30:25 +00:00
|
|
|
namespace osu.Game.Rulesets.Taiko.Skinning.Default
|
2020-04-11 04:14:34 +00:00
|
|
|
{
|
|
|
|
public class RimHitCirclePiece : CirclePiece
|
|
|
|
{
|
|
|
|
public RimHitCirclePiece()
|
|
|
|
{
|
|
|
|
Add(new RimHitSymbolPiece());
|
|
|
|
}
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load(OsuColour colours)
|
|
|
|
{
|
2021-06-11 05:20:08 +00:00
|
|
|
AccentColour = Hit.COLOUR_RIM;
|
2020-04-11 04:14:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The symbol used for rim hit pieces.
|
|
|
|
/// </summary>
|
|
|
|
public class RimHitSymbolPiece : CircularContainer
|
|
|
|
{
|
|
|
|
public RimHitSymbolPiece()
|
|
|
|
{
|
|
|
|
Anchor = Anchor.Centre;
|
|
|
|
Origin = Anchor.Centre;
|
|
|
|
|
|
|
|
RelativeSizeAxes = Axes.Both;
|
|
|
|
Size = new Vector2(SYMBOL_SIZE);
|
|
|
|
|
|
|
|
BorderThickness = SYMBOL_BORDER;
|
|
|
|
BorderColour = Color4.White;
|
|
|
|
Masking = true;
|
|
|
|
Children = new[]
|
|
|
|
{
|
|
|
|
new Box
|
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
Alpha = 0,
|
|
|
|
AlwaysPresent = true
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|