mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 19:42:55 +08:00
Adjust InputDrum usage
This commit is contained in:
parent
648f9204f5
commit
8e6a0493b4
@ -37,39 +37,41 @@ namespace osu.Game.Rulesets.Taiko.UI
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load()
|
||||||
{
|
{
|
||||||
Child = new SkinnableDrawable(new TaikoSkinComponent(TaikoSkinComponents.InputDrum), _ => new Container
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
new SkinnableDrawable(new TaikoSkinComponent(TaikoSkinComponents.InputDrum), _ => new Container
|
||||||
FillMode = FillMode.Fit,
|
|
||||||
Scale = new Vector2(0.9f),
|
|
||||||
Children = new Drawable[]
|
|
||||||
{
|
{
|
||||||
new TaikoHalfDrum(false)
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
FillMode = FillMode.Fit,
|
||||||
|
Scale = new Vector2(0.9f),
|
||||||
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
Name = "Left Half",
|
new TaikoHalfDrum(false)
|
||||||
Anchor = Anchor.Centre,
|
{
|
||||||
Origin = Anchor.CentreRight,
|
Name = "Left Half",
|
||||||
RelativeSizeAxes = Axes.Both,
|
Anchor = Anchor.Centre,
|
||||||
RelativePositionAxes = Axes.X,
|
Origin = Anchor.CentreRight,
|
||||||
X = -middle_split / 2,
|
RelativeSizeAxes = Axes.Both,
|
||||||
RimAction = TaikoAction.LeftRim,
|
RelativePositionAxes = Axes.X,
|
||||||
CentreAction = TaikoAction.LeftCentre
|
X = -middle_split / 2,
|
||||||
},
|
RimAction = TaikoAction.LeftRim,
|
||||||
new TaikoHalfDrum(true)
|
CentreAction = TaikoAction.LeftCentre
|
||||||
{
|
},
|
||||||
Name = "Right Half",
|
new TaikoHalfDrum(true)
|
||||||
Anchor = Anchor.Centre,
|
{
|
||||||
Origin = Anchor.CentreLeft,
|
Name = "Right Half",
|
||||||
RelativeSizeAxes = Axes.Both,
|
Anchor = Anchor.Centre,
|
||||||
RelativePositionAxes = Axes.X,
|
Origin = Anchor.CentreLeft,
|
||||||
X = middle_split / 2,
|
RelativeSizeAxes = Axes.Both,
|
||||||
RimAction = TaikoAction.RightRim,
|
RelativePositionAxes = Axes.X,
|
||||||
CentreAction = TaikoAction.RightCentre
|
X = middle_split / 2,
|
||||||
|
RimAction = TaikoAction.RightRim,
|
||||||
|
CentreAction = TaikoAction.RightCentre
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}),
|
||||||
});
|
sampleContainer
|
||||||
|
};
|
||||||
AddRangeInternal(sampleContainer.Sounds);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user