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

Remove SpaceTextOnHover

This commit is contained in:
DrabWeb 2017-02-27 21:30:10 -04:00
parent b3a231185b
commit 164f205ee5
2 changed files with 2 additions and 5 deletions

View File

@ -79,13 +79,12 @@ namespace osu.Game.Graphics.UserInterface
}
}
internal bool SpaceTextOnHover = true;
public SampleChannel SampleClick, SampleHover;
private Container backgroundContainer, colourContainer, glowContainer;
private Box leftGlow, centerGlow, rightGlow, background;
private SpriteText spriteText;
private Vector2 hoverSpacing => new Vector2(3f, 0f);
private bool didClick; // Used for making sure that the OnMouseDown animation can call instead of OnHoverLost's when clicking
@ -111,8 +110,7 @@ namespace osu.Game.Graphics.UserInterface
protected override bool OnHover(Framework.Input.InputState state)
{
if (SpaceTextOnHover)
spriteText.TransformSpacingTo(new Vector2(3f, 0f), hover_duration, EasingTypes.OutElastic);
spriteText.TransformSpacingTo(hoverSpacing, hover_duration, EasingTypes.OutElastic);
colourContainer.ResizeTo(new Vector2(hover_width, 1f), hover_duration, EasingTypes.OutElastic);
glowContainer.FadeIn(glow_fade_duration, EasingTypes.Out);

View File

@ -15,7 +15,6 @@ namespace osu.Game.Overlays.Dialog
Height = 50;
BackgroundColour = OsuColour.FromHex(@"150e14");
TextSize = 18;
SpaceTextOnHover = false;
}
}
}