Simplify property

This commit is contained in:
EVAST9919 2017-06-27 05:41:24 +03:00
parent 714d53f329
commit 2ad6d3fa77

View File

@ -53,7 +53,6 @@ namespace osu.Game.Screens.Play.HUD
mods.ValueChanged += mods =>
{
iconsContainer.Clear();
foreach (Mod mod in mods)
{
iconsContainer.Add(new ModIcon(mod)
@ -68,28 +67,17 @@ namespace osu.Game.Screens.Play.HUD
};
}
private bool playIsRanked()
{
if (!mods.Value.Any()) return true;
foreach (var mod in mods.Value)
{
if (!mod.Ranked)
return false;
}
return true;
}
protected override void LoadComplete()
{
base.LoadComplete();
appearTransform();
}
private bool playIsRanked => !mods.Value.Any(m => !m.Ranked);
private void appearTransform()
{
if (!playIsRanked())
if (!playIsRanked)
unrankedText.FadeInFromZero(fade_duration, EasingTypes.OutQuint);
else
unrankedText.FadeTo(0);