mirror of
https://github.com/ppy/osu.git
synced 2025-03-25 03:07:34 +08:00
Updated to use ppy's implementation
This commit is contained in:
parent
8e0d59bfed
commit
c053733ea9
@ -93,7 +93,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
FadeColour(Color4.White, 200, EasingTypes.OutQuint);
|
||||
|
||||
if (Hovering)
|
||||
if (IsHovered)
|
||||
OnHover(new InputState());
|
||||
}
|
||||
else
|
||||
@ -101,7 +101,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
FadeColour(disableColour, 200, EasingTypes.OutQuint);
|
||||
content.ScaleTo(1, 200, EasingTypes.OutElastic);
|
||||
|
||||
if (Hovering)
|
||||
if (IsHovered)
|
||||
OnHoverLost(new InputState());
|
||||
}
|
||||
}
|
||||
|
@ -329,8 +329,6 @@ namespace osu.Game
|
||||
}
|
||||
|
||||
ScreenChanged?.Invoke(newScreen);
|
||||
|
||||
Beatmap.Disabled = !currentScreen.AllowBeatmapChange;
|
||||
}
|
||||
|
||||
protected override bool OnExiting()
|
||||
|
@ -262,7 +262,8 @@ namespace osu.Game.Overlays
|
||||
progressBar.UpdatePosition(track.Length == 0 ? 0 : (float)(track.CurrentTime / track.Length));
|
||||
playButton.Icon = track.IsRunning ? FontAwesome.fa_pause_circle_o : FontAwesome.fa_play_circle_o;
|
||||
|
||||
if (track.HasCompleted && !track.Looping && !beatmapBacking.Disabled) next();
|
||||
if (track.HasCompleted && !track.Looping && !beatmapBacking.Disabled)
|
||||
next();
|
||||
}
|
||||
else
|
||||
playButton.Icon = FontAwesome.fa_play_circle_o;
|
||||
@ -287,16 +288,12 @@ namespace osu.Game.Overlays
|
||||
|
||||
private void prev()
|
||||
{
|
||||
if (beatmapBacking.Disabled) return;
|
||||
|
||||
queuedDirection = TransformDirection.Prev;
|
||||
playlist.PlayPrevious();
|
||||
}
|
||||
|
||||
private void next()
|
||||
{
|
||||
if (beatmapBacking.Disabled) return;
|
||||
|
||||
queuedDirection = TransformDirection.Next;
|
||||
playlist.PlayNext();
|
||||
}
|
||||
|
@ -35,8 +35,6 @@ namespace osu.Game.Screens
|
||||
/// </summary>
|
||||
internal virtual bool AllowBeatmapRulesetChange => true;
|
||||
|
||||
internal virtual bool AllowBeatmapChange => true;
|
||||
|
||||
private readonly Bindable<WorkingBeatmap> beatmap = new Bindable<WorkingBeatmap>();
|
||||
|
||||
private readonly Bindable<RulesetInfo> ruleset = new Bindable<RulesetInfo>();
|
||||
|
@ -33,8 +33,6 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
internal override bool ShowOverlays => false;
|
||||
|
||||
internal override bool AllowBeatmapChange => false;
|
||||
|
||||
internal override bool HasLocalCursorDisplayed => !pauseContainer.IsPaused && !HasFailed && HitRenderer.ProvidingUserCursor;
|
||||
|
||||
public BeatmapInfo BeatmapInfo;
|
||||
|
@ -33,8 +33,6 @@ namespace osu.Game.Screens.Ranking
|
||||
|
||||
internal override bool AllowBeatmapRulesetChange => false;
|
||||
|
||||
internal override bool AllowBeatmapChange => false;
|
||||
|
||||
private Container currentPage;
|
||||
|
||||
private static readonly Vector2 background_blur = new Vector2(20);
|
||||
|
Loading…
x
Reference in New Issue
Block a user