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