mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Use AddInternal instead of AddTopLevel.
This commit is contained in:
committed by
Dean Herbert
parent
bcb5a02221
commit
dd04b33232
@ -14,21 +14,21 @@ namespace osu.Game.Graphics.Containers
|
||||
public ParallaxContainer()
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both;
|
||||
AddInternal(content = new Container()
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre
|
||||
});
|
||||
}
|
||||
|
||||
private Container content = new Container()
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre
|
||||
};
|
||||
private Container content;
|
||||
|
||||
protected override Container AddTarget => content;
|
||||
protected override Container Content => content;
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
base.Load();
|
||||
Add(content);
|
||||
}
|
||||
|
||||
protected override bool OnMouseMove(InputState state)
|
||||
|
Reference in New Issue
Block a user