mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
only insert BufferedContainer when using FI
This commit is contained in:
@ -35,11 +35,23 @@ namespace osu.Game.Rulesets.Mania.Mods
|
|||||||
|
|
||||||
foreach (Column column in maniaPlayfield.Stages.SelectMany(stage => stage.Columns))
|
foreach (Column column in maniaPlayfield.Stages.SelectMany(stage => stage.Columns))
|
||||||
{
|
{
|
||||||
((BufferedContainer)column.HitObjectArea.HitObjectContainer.Parent).Add(new LaneCover(false)
|
HitObjectContainer hoc = column.HitObjectArea.HitObjectContainer;
|
||||||
|
Container hocParent = (Container)hoc.Parent;
|
||||||
|
|
||||||
|
hocParent.Remove(hoc);
|
||||||
|
hocParent.Add(new BufferedContainer
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Children = new Drawable[]
|
||||||
|
{
|
||||||
|
hoc,
|
||||||
|
new LaneCover(false)
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
SizeFilled = 0.5f,
|
SizeFilled = 0.5f,
|
||||||
SizeGradient = 0.25f
|
SizeGradient = 0.25f
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ namespace osu.Game.Rulesets.Mania.UI.Components
|
|||||||
|
|
||||||
public HitObjectArea(HitObjectContainer hitObjectContainer)
|
public HitObjectArea(HitObjectContainer hitObjectContainer)
|
||||||
{
|
{
|
||||||
InternalChild = new BufferedContainer
|
InternalChild = new Container
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Child = HitObjectContainer = hitObjectContainer
|
Child = HitObjectContainer = hitObjectContainer
|
||||||
|
Reference in New Issue
Block a user