mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:37:28 +08:00
Use children for initialisation.
This commit is contained in:
parent
3a5f37444c
commit
33e46facec
@ -41,37 +41,37 @@ namespace osu.Game.GameModes.Play
|
||||
HitObjects = objects
|
||||
};
|
||||
|
||||
Add(new OsuHitRenderer()
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new OsuHitRenderer
|
||||
{
|
||||
Objects = beatmap.HitObjects,
|
||||
Scale = new Vector2(0.5f),
|
||||
Anchor = Anchor.TopLeft,
|
||||
Origin = Anchor.TopLeft
|
||||
});
|
||||
|
||||
Add(new TaikoHitRenderer()
|
||||
},
|
||||
new TaikoHitRenderer
|
||||
{
|
||||
Objects = beatmap.HitObjects,
|
||||
Scale = new Vector2(0.5f),
|
||||
Anchor = Anchor.TopRight,
|
||||
Origin = Anchor.TopRight
|
||||
});
|
||||
|
||||
Add(new CatchHitRenderer()
|
||||
},
|
||||
new CatchHitRenderer
|
||||
{
|
||||
Objects = beatmap.HitObjects,
|
||||
Scale = new Vector2(0.5f),
|
||||
Anchor = Anchor.BottomLeft,
|
||||
Origin = Anchor.BottomLeft
|
||||
});
|
||||
|
||||
Add(new ManiaHitRenderer()
|
||||
},
|
||||
new ManiaHitRenderer
|
||||
{
|
||||
Objects = beatmap.HitObjects,
|
||||
Scale = new Vector2(0.5f),
|
||||
Anchor = Anchor.BottomRight,
|
||||
Origin = Anchor.BottomRight
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user