mirror of
https://github.com/ppy/osu
synced 2025-01-02 20:32:10 +00:00
Use WithChild
This commit is contained in:
parent
02031cea01
commit
74c7d9e67d
@ -29,11 +29,10 @@ namespace osu.Game.Rulesets.Mania.Mods
|
||||
Container hocParent = (Container)hoc.Parent;
|
||||
|
||||
hocParent.Remove(hoc);
|
||||
hocParent.Add(CreateCover().With(c =>
|
||||
hocParent.Add(CreateCover().WithChild(hoc).With(c =>
|
||||
{
|
||||
c.RelativeSizeAxes = Axes.Both;
|
||||
c.Coverage = 0.5f;
|
||||
c.Child = hoc;
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user