mirror of
https://github.com/ppy/osu.git
synced 2025-01-07 18:33:04 +08:00
Use BindTarget
This commit is contained in:
parent
1cf240b5ff
commit
3efb4aba25
@ -274,13 +274,12 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
{
|
{
|
||||||
case DownloadState.LocallyAvailable:
|
case DownloadState.LocallyAvailable:
|
||||||
// temporary for UX until new design is implemented.
|
// temporary for UX until new design is implemented.
|
||||||
PanelDownloadButton panelButton;
|
downloadButtonsContainer.Child = new PanelDownloadButton(BeatmapSet.Value)
|
||||||
downloadButtonsContainer.Child = panelButton = new PanelDownloadButton(BeatmapSet.Value)
|
|
||||||
{
|
{
|
||||||
Width = 50,
|
Width = 50,
|
||||||
RelativeSizeAxes = Axes.Y
|
RelativeSizeAxes = Axes.Y,
|
||||||
|
CurrentBeatmap = { BindTarget = Picker.Beatmap }
|
||||||
};
|
};
|
||||||
panelButton.CurrentBeatmap.BindTo(Picker.Beatmap);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DownloadState.Downloading:
|
case DownloadState.Downloading:
|
||||||
|
Loading…
Reference in New Issue
Block a user