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

More arrow adjustments to match the design

This commit is contained in:
EVAST9919 2017-09-22 21:12:58 +03:00
parent 92eb8e4fa9
commit d73b40768e
3 changed files with 6 additions and 6 deletions

View File

@ -10,9 +10,9 @@ namespace osu.Game.Screens.Play.BreaksOverlay
{
public class ArrowsOverlay : Container
{
private const int glow_icon_size = 65;
private const int glow_icon_blur_sigma = 8;
private const float glow_icon_final_offset = 0.2f;
private const int glow_icon_size = 60;
private const int glow_icon_blur_sigma = 10;
private const float glow_icon_final_offset = 0.22f;
private const float glow_icon_offscreen_offset = 0.6f;
private const int blurred_icon_blur_sigma = 20;
@ -58,6 +58,7 @@ namespace osu.Game.Screens.Play.BreaksOverlay
{
Anchor = Anchor.Centre,
Origin = Anchor.CentreRight,
Alpha = 0.7f,
X = - blurred_icon_offscreen_offset,
Icon = Graphics.FontAwesome.fa_chevron_right,
BlurSigma = new Vector2(blurred_icon_blur_sigma),
@ -67,6 +68,7 @@ namespace osu.Game.Screens.Play.BreaksOverlay
{
Anchor = Anchor.Centre,
Origin = Anchor.CentreLeft,
Alpha = 0.7f,
X = blurred_icon_offscreen_offset,
Icon = Graphics.FontAwesome.fa_chevron_left,
BlurSigma = new Vector2(blurred_icon_blur_sigma),

View File

@ -33,7 +33,6 @@ namespace osu.Game.Screens.Play.BreaksOverlay
public BlurredIcon()
{
RelativePositionAxes = Axes.X;
Alpha = 0.7f;
CacheDrawnFrameBuffer = true;
Child = icon = new SpriteIcon
{

View File

@ -18,8 +18,7 @@ namespace osu.Game.Screens.Play.BreaksOverlay
{
set
{
blurredIcon.Size = value;
spriteIcon.Size = value - new Vector2(10); //Make it a bit smaller to make blur more visible
blurredIcon.Size = spriteIcon.Size = value;
blurredIcon.ForceRedraw();
}
get { return base.Size; }