mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Make fields protected and expose them in tests
This commit is contained in:
@ -29,7 +29,7 @@ namespace osu.Game.Overlays.Direct
|
||||
private PlayButton playButton;
|
||||
private Box progressBar;
|
||||
|
||||
public override DownloadButton DownloadButton => downloadButton;
|
||||
protected override DownloadButton DownloadButton => downloadButton;
|
||||
protected override PlayButton PlayButton => playButton;
|
||||
protected override Box PreviewBar => progressBar;
|
||||
|
||||
|
@ -33,7 +33,7 @@ namespace osu.Game.Overlays.Direct
|
||||
|
||||
protected override bool FadePlayButton => false;
|
||||
|
||||
public override DownloadButton DownloadButton => downloadButton;
|
||||
protected override DownloadButton DownloadButton => downloadButton;
|
||||
protected override PlayButton PlayButton => playButton;
|
||||
protected override Box PreviewBar => progressBar;
|
||||
|
||||
|
@ -34,7 +34,8 @@ namespace osu.Game.Overlays.Direct
|
||||
|
||||
public PreviewTrack Preview => PlayButton.Preview;
|
||||
public Bindable<bool> PreviewPlaying => PlayButton.Playing;
|
||||
public abstract DownloadButton DownloadButton { get; }
|
||||
|
||||
protected abstract DownloadButton DownloadButton { get; }
|
||||
protected abstract PlayButton PlayButton { get; }
|
||||
protected abstract Box PreviewBar { get; }
|
||||
|
||||
|
Reference in New Issue
Block a user