1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-20 02:13:01 +08:00
osu-lazer/osu.Game.Rulesets.Taiko/UI/InputDrum.cs

37 lines
1.0 KiB
C#
Raw Normal View History

// 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.
2018-04-13 17:19:50 +08:00
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Rulesets.Taiko.Skinning.Default;
using osu.Game.Skinning;
2018-04-13 17:19:50 +08:00
namespace osu.Game.Rulesets.Taiko.UI
{
/// <summary>
/// A component of the playfield that captures input and displays input as a drum.
/// </summary>
internal class InputDrum : Container
{
public InputDrum()
2018-04-13 17:19:50 +08:00
{
AutoSizeAxes = Axes.X;
RelativeSizeAxes = Axes.Y;
2018-04-13 17:19:50 +08:00
}
[BackgroundDependencyLoader]
private void load()
{
2020-07-26 21:15:01 +08:00
Children = new Drawable[]
2018-04-13 17:19:50 +08:00
{
new SkinnableDrawable(new TaikoSkinComponent(TaikoSkinComponents.InputDrum), _ => new DefaultInputDrum())
{
RelativeSizeAxes = Axes.Y,
AutoSizeAxes = Axes.X,
},
};
}
2018-04-13 17:19:50 +08:00
}
}