mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Update with framework bindable changes
This commit is contained in:
@ -112,12 +112,12 @@ namespace osu.Game.Overlays.Direct
|
||||
base.OnHoverLost(e);
|
||||
}
|
||||
|
||||
private void playingStateChanged(bool playing)
|
||||
private void playingStateChanged(ValueChangedEvent<bool> e)
|
||||
{
|
||||
icon.Icon = playing ? FontAwesome.fa_stop : FontAwesome.fa_play;
|
||||
icon.FadeColour(playing || IsHovered ? hoverColour : Color4.White, 120, Easing.InOutQuint);
|
||||
icon.Icon = e.NewValue ? FontAwesome.fa_stop : FontAwesome.fa_play;
|
||||
icon.FadeColour(e.NewValue || IsHovered ? hoverColour : Color4.White, 120, Easing.InOutQuint);
|
||||
|
||||
if (playing)
|
||||
if (e.NewValue)
|
||||
{
|
||||
if (BeatmapSet == null)
|
||||
{
|
||||
@ -144,7 +144,7 @@ namespace osu.Game.Overlays.Direct
|
||||
preview.Stopped += () => Playing.Value = false;
|
||||
|
||||
// user may have changed their mind.
|
||||
if (Playing)
|
||||
if (Playing.Value)
|
||||
preview.Start();
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user