mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09: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:
parent
55c56c03a5
commit
e4f6e842b0
@ -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
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user