Make DownloadButton accessible by DirectPanel

This commit is contained in:
KingLuigi4932
2019-06-12 18:07:57 +03:00
parent efd9766fb3
commit a069a3029e
4 changed files with 13 additions and 3 deletions

View File

@ -27,11 +27,13 @@ namespace osu.Game.Overlays.Direct
private const float height = 70;
private FillFlowContainer statusContainer;
private DownloadButton downloadButton;
private PlayButton playButton;
private Box progressBar;
protected override bool FadePlayButton => false;
public override DownloadButton DownloadButton => downloadButton;
protected override PlayButton PlayButton => playButton;
protected override Box PreviewBar => progressBar;
@ -149,7 +151,7 @@ namespace osu.Game.Overlays.Direct
Anchor = Anchor.CentreRight,
Origin = Anchor.CentreRight,
AutoSizeAxes = Axes.Both,
Child = new DownloadButton(SetInfo)
Child = downloadButton = new DownloadButton(SetInfo)
{
Size = new Vector2(height - vertical_padding * 3),
Margin = new MarginPadding { Left = vertical_padding * 2, Right = vertical_padding },