mirror of
https://github.com/ppy/osu
synced 2024-12-16 20:05:41 +00:00
Use readonly IBindable
This commit is contained in:
parent
ed28e8c8f5
commit
3b9e0fa67d
@ -274,12 +274,13 @@ namespace osu.Game.Overlays.BeatmapSet
|
||||
{
|
||||
case DownloadState.LocallyAvailable:
|
||||
// temporary for UX until new design is implemented.
|
||||
downloadButtonsContainer.Child = new PanelDownloadButton(BeatmapSet.Value)
|
||||
PanelDownloadButton panelButton;
|
||||
downloadButtonsContainer.Child = panelButton = new PanelDownloadButton(BeatmapSet.Value)
|
||||
{
|
||||
Width = 50,
|
||||
RelativeSizeAxes = Axes.Y,
|
||||
CurrentBeatmap = Picker.Beatmap.GetBoundCopy()
|
||||
RelativeSizeAxes = Axes.Y
|
||||
};
|
||||
panelButton.CurrentBeatmap.BindTo(Picker.Beatmap);
|
||||
break;
|
||||
|
||||
case DownloadState.Downloading:
|
||||
|
@ -18,7 +18,7 @@ namespace osu.Game.Overlays.Direct
|
||||
|
||||
private readonly bool noVideo;
|
||||
|
||||
public Bindable<BeatmapInfo> CurrentBeatmap = new Bindable<BeatmapInfo>();
|
||||
public readonly IBindable<BeatmapInfo> CurrentBeatmap = new Bindable<BeatmapInfo>();
|
||||
|
||||
private readonly ShakeContainer shakeContainer;
|
||||
private readonly DownloadButton button;
|
||||
|
Loading…
Reference in New Issue
Block a user