1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 08:32:57 +08:00

Expose input drum SkinnableDrawable in InputDrum for width consumption

This is probably not a good way to approach this, but I'm unsure about
any other way.
This commit is contained in:
Salman Ahmed 2022-04-06 02:34:35 +03:00
parent 55c56c03a5
commit e4f6e842b0

View File

@ -24,6 +24,8 @@ namespace osu.Game.Rulesets.Taiko.UI
{
private const float middle_split = 0.025f;
public SkinnableDrawable Skinnable { get; private set; }
[Cached]
private DrumSampleTriggerSource sampleTriggerSource;
@ -39,7 +41,7 @@ namespace osu.Game.Rulesets.Taiko.UI
{
Children = new Drawable[]
{
new SkinnableDrawable(new TaikoSkinComponent(TaikoSkinComponents.InputDrum), _ => new Container
Skinnable = new SkinnableDrawable(new TaikoSkinComponent(TaikoSkinComponents.InputDrum), _ => new Container
{
RelativeSizeAxes = Axes.Both,
FillMode = FillMode.Fit,
@ -69,7 +71,10 @@ namespace osu.Game.Rulesets.Taiko.UI
CentreAction = TaikoAction.RightCentre
}
}
}),
})
{
CentreComponent = false,
},
sampleTriggerSource
};
}