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.Sprites;
|
|
|
|
using osu.Framework.Graphics.Textures;
|
|
|
|
using osu.Game.Graphics;
|
|
|
|
|
|
|
|
namespace osu.Game.Modes.Taiko.Objects.Drawable.Pieces
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// A circle piece which is used to visualise Bash objects.
|
|
|
|
/// </summary>
|
|
|
|
public class BashCirclePiece : CirclePiece
|
|
|
|
{
|
|
|
|
private Sprite icon;
|
|
|
|
|
|
|
|
protected override Framework.Graphics.Drawable CreateIcon()
|
|
|
|
{
|
2017-03-24 14:43:17 +08:00
|
|
|
return icon ?? (icon = new Sprite
|
2017-03-20 15:50:22 +08:00
|
|
|
{
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
Origin = Anchor.Centre,
|
2017-03-24 14:43:17 +08:00
|
|
|
});
|
2017-03-20 15:50:22 +08:00
|
|
|
}
|
2017-03-24 14:42:48 +08:00
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load(OsuColour colours, TextureStore textures)
|
|
|
|
{
|
|
|
|
AccentColour = colours.YellowDark;
|
|
|
|
|
|
|
|
icon.Texture = textures.Get(@"Play/Taiko/bash-hit-inner");
|
|
|
|
}
|
2017-03-20 15:50:22 +08:00
|
|
|
}
|
|
|
|
}
|