2019-01-24 08:43:03 +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.
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2017-03-21 06:09:54 +00:00
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Framework.Graphics.Containers;
|
2022-11-02 08:00:39 +00:00
|
|
|
|
using osu.Game.Rulesets.Taiko.Skinning.Default;
|
2020-04-03 09:23:03 +00:00
|
|
|
|
using osu.Game.Skinning;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2017-04-18 07:05:58 +00:00
|
|
|
|
namespace osu.Game.Rulesets.Taiko.UI
|
2017-03-21 06:09:54 +00:00
|
|
|
|
{
|
2017-03-21 09:16:14 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// A component of the playfield that captures input and displays input as a drum.
|
|
|
|
|
/// </summary>
|
2017-03-21 06:09:54 +00:00
|
|
|
|
internal partial class InputDrum : Container
|
|
|
|
|
{
|
2017-12-26 05:18:23 +00:00
|
|
|
|
[BackgroundDependencyLoader]
|
2018-02-23 11:34:08 +00:00
|
|
|
|
private void load()
|
2017-12-26 05:18:23 +00:00
|
|
|
|
{
|
2020-07-26 13:15:01 +00:00
|
|
|
|
Children = new Drawable[]
|
2017-03-21 06:09:54 +00:00
|
|
|
|
{
|
2022-11-09 07:04:56 +00:00
|
|
|
|
new SkinnableDrawable(new TaikoSkinComponentLookup(TaikoSkinComponents.InputDrum), _ => new DefaultInputDrum())
|
2022-04-07 18:39:53 +00:00
|
|
|
|
{
|
2024-01-19 20:26:35 +00:00
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
2022-04-07 18:39:53 +00:00
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
}
|
2017-03-21 06:09:54 +00:00
|
|
|
|
}
|
|
|
|
|
}
|