Use a protected Downloaded bindable instead of abstract methods.

This commit is contained in:
DrabWeb
2018-06-04 06:47:39 -03:00
parent 7eeba2cf9a
commit 416384956d
2 changed files with 17 additions and 38 deletions

View File

@ -26,6 +26,14 @@ namespace osu.Game.Overlays.Direct
Icon = FontAwesome.fa_osu_chevron_down_o,
},
};
Downloaded.ValueChanged += e =>
{
if (e)
this.FadeOut(200);
else
this.FadeIn(200);
};
}
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
@ -50,19 +58,5 @@ namespace osu.Game.Overlays.Direct
{
icon.ScaleTo(1f, 500, Easing.OutElastic);
}
protected override void Enable()
{
this.FadeIn(200);
}
protected override void Disable()
{
this.FadeOut(200);
}
protected override void AlreadyDownloading()
{
}
}
}