mirror of
https://github.com/ppy/osu.git
synced 2025-03-24 07:27:29 +08:00
only insert BufferedContainer when using FI
This commit is contained in:
parent
3178217216
commit
ca39f2aa24
@ -35,11 +35,23 @@ namespace osu.Game.Rulesets.Mania.Mods
|
||||
|
||||
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,
|
||||
SizeFilled = 0.5f,
|
||||
SizeGradient = 0.25f
|
||||
Children = new Drawable[]
|
||||
{
|
||||
hoc,
|
||||
new LaneCover(false)
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
SizeFilled = 0.5f,
|
||||
SizeGradient = 0.25f
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ namespace osu.Game.Rulesets.Mania.UI.Components
|
||||
|
||||
public HitObjectArea(HitObjectContainer hitObjectContainer)
|
||||
{
|
||||
InternalChild = new BufferedContainer
|
||||
InternalChild = new Container
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Child = HitObjectContainer = hitObjectContainer
|
||||
|
Loading…
x
Reference in New Issue
Block a user