1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 09:22:54 +08:00

Rename CurrentBeatmap to SelectedBeatmap

This commit is contained in:
Dean Herbert 2020-04-13 15:13:35 +09:00
parent 72fb466a0b
commit 142cddfb10
2 changed files with 7 additions and 4 deletions

View File

@ -278,7 +278,7 @@ namespace osu.Game.Overlays.BeatmapSet
{
Width = 50,
RelativeSizeAxes = Axes.Y,
CurrentBeatmap = { BindTarget = Picker.Beatmap }
SelectedBeatmap = { BindTarget = Picker.Beatmap }
};
break;

View File

@ -18,7 +18,10 @@ namespace osu.Game.Overlays.Direct
private readonly bool noVideo;
public readonly IBindable<BeatmapInfo> CurrentBeatmap = new Bindable<BeatmapInfo>();
/// <summary>
/// Currently selected beatmap. Used to present the correct difficulty after completing a download.
/// </summary>
public readonly IBindable<BeatmapInfo> SelectedBeatmap = new Bindable<BeatmapInfo>();
private readonly ShakeContainer shakeContainer;
private readonly DownloadButton button;
@ -67,8 +70,8 @@ namespace osu.Game.Overlays.Direct
case DownloadState.LocallyAvailable:
Predicate<BeatmapInfo> findPredicate = null;
if (CurrentBeatmap.Value != null)
findPredicate = b => b.OnlineBeatmapID == CurrentBeatmap.Value.OnlineBeatmapID;
if (SelectedBeatmap.Value != null)
findPredicate = b => b.OnlineBeatmapID == SelectedBeatmap.Value.OnlineBeatmapID;
game?.PresentBeatmap(BeatmapSet.Value, findPredicate);
break;