mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 09:27:18 +09: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;
|
Container hocParent = (Container)hoc.Parent;
|
||||||
|
|
||||||
hocParent.Remove(hoc);
|
hocParent.Remove(hoc);
|
||||||
hocParent.Add(CreateCover().With(c =>
|
hocParent.Add(CreateCover().WithChild(hoc).With(c =>
|
||||||
{
|
{
|
||||||
c.RelativeSizeAxes = Axes.Both;
|
c.RelativeSizeAxes = Axes.Both;
|
||||||
c.Coverage = 0.5f;
|
c.Coverage = 0.5f;
|
||||||
c.Child = hoc;
|
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user