mirror of
https://github.com/ppy/osu.git
synced 2025-02-28 00:43:01 +08:00
Use circular hover region for osu! logo.
This commit is contained in:
parent
8f5de3040c
commit
1d8ff5fe46
@ -8,6 +8,7 @@ using osu.Framework.Graphics.Sprites;
|
||||
using osu.Framework.Graphics.Transformations;
|
||||
using osu.Framework.Input;
|
||||
using osu.Framework;
|
||||
using OpenTK;
|
||||
|
||||
namespace osu.Game.GameModes.Menu
|
||||
{
|
||||
@ -16,7 +17,7 @@ namespace osu.Game.GameModes.Menu
|
||||
/// </summary>
|
||||
public partial class OsuLogo : AutoSizeContainer
|
||||
{
|
||||
private Sprite logo;
|
||||
private SpriteCircular logo;
|
||||
private Container logoBounceContainer;
|
||||
private MenuVisualisation vis;
|
||||
|
||||
@ -37,6 +38,11 @@ namespace osu.Game.GameModes.Menu
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Contains(Vector2 screenSpacePos)
|
||||
{
|
||||
return logo.Contains(screenSpacePos);
|
||||
}
|
||||
|
||||
public bool Interactive = true;
|
||||
|
||||
public OsuLogo()
|
||||
@ -50,7 +56,7 @@ namespace osu.Game.GameModes.Menu
|
||||
{
|
||||
Children = new Drawable[]
|
||||
{
|
||||
logo = new Sprite()
|
||||
logo = new SpriteCircular()
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre
|
||||
|
Loading…
Reference in New Issue
Block a user