Cleanup (again)

This commit is contained in:
DrabWeb
2017-05-19 20:03:07 -03:00
parent c981a4a511
commit 83c81c0626
5 changed files with 6 additions and 13 deletions

View File

@ -136,7 +136,7 @@ namespace osu.Game.Overlays.Direct
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
TextSize = 14,
Alpha = SetInfo.Metadata.Source == @"" ? 0 : 1,
Alpha = string.IsNullOrEmpty(SetInfo.Metadata.Source) ? 0f : 1f,
},
},
},
@ -190,7 +190,7 @@ namespace osu.Game.Overlays.Direct
protected override void OnHoverLost(InputState state)
{
icon.ScaleTo(1, 500, EasingTypes.OutElastic);
icon.ScaleTo(1f, 500, EasingTypes.OutElastic);
}
}
}