2017-03-20 16:02:06 +08:00
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
2017-03-20 15:50:22 +08:00
|
|
|
using osu.Framework.Allocation;
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
using osu.Framework.Graphics.Sprites;
|
|
|
|
using osu.Game.Graphics;
|
|
|
|
using OpenTK;
|
|
|
|
using OpenTK.Graphics;
|
|
|
|
|
|
|
|
namespace osu.Game.Modes.Taiko.Objects.Drawable.Pieces
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// A circle piece which is used to visualise RimHit objects.
|
|
|
|
/// </summary>
|
|
|
|
public class RimHitCirclePiece : CirclePiece
|
|
|
|
{
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load(OsuColour colours)
|
|
|
|
{
|
|
|
|
AccentColour = colours.BlueDarker;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected override Framework.Graphics.Drawable CreateIcon()
|
|
|
|
{
|
|
|
|
return new CircularContainer
|
|
|
|
{
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
Origin = Anchor.Centre,
|
|
|
|
Size = new Vector2(61f),
|
|
|
|
BorderThickness = 8,
|
|
|
|
BorderColour = Color4.White,
|
2017-03-23 08:18:50 +08:00
|
|
|
Masking = true,
|
2017-03-20 15:50:22 +08:00
|
|
|
Children = new[]
|
|
|
|
{
|
|
|
|
new Box
|
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
Alpha = 0,
|
|
|
|
AlwaysPresent = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|