mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Use a protected Downloaded bindable instead of abstract methods.
This commit is contained in:
@ -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()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user