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

View File

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

View File

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