1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 15:52:54 +08:00

Modify osu! logo to use new CircularContainer.

This commit is contained in:
Thomas Müller 2016-10-16 19:25:08 +02:00
parent d3fd16f209
commit 53076f6446
2 changed files with 17 additions and 9 deletions

@ -1 +1 @@
Subproject commit 5dc6a02088d0fac39810fc2da26ac0de72551939
Subproject commit 06b67af0bc866d8d02ef4c1a0dad8d8970bd4e23

View File

@ -17,7 +17,8 @@ namespace osu.Game.GameModes.Menu
/// </summary>
public partial class OsuLogo : AutoSizeContainer
{
private SpriteCircular logo;
private Sprite logo;
private CircularContainer logoContainer;
private Container logoBounceContainer;
private MenuVisualisation vis;
@ -29,6 +30,11 @@ namespace osu.Game.GameModes.Menu
private Container rippleContainer;
public override bool Contains(Vector2 screenSpacePos)
{
return logoContainer.Contains(screenSpacePos);
}
public bool Ripple
{
get { return rippleContainer.Alpha > 0; }
@ -38,11 +44,6 @@ namespace osu.Game.GameModes.Menu
}
}
public override bool Contains(Vector2 screenSpacePos)
{
return logo.Contains(screenSpacePos);
}
public bool Interactive = true;
public OsuLogo()
@ -56,10 +57,17 @@ namespace osu.Game.GameModes.Menu
{
Children = new Drawable[]
{
logo = new SpriteCircular()
logoContainer = new CircularContainer
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre
Children = new[]
{
logo = new Sprite
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
},
},
},
rippleContainer = new Container
{