mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Make fields protected and expose them in tests
This commit is contained in:
@ -34,7 +34,8 @@ namespace osu.Game.Overlays.BeatmapSet
|
||||
private readonly BeatmapNotAvailable beatmapNotAvailable;
|
||||
private readonly BeatmapSetOnlineStatusPill onlineStatusPill;
|
||||
public Details Details;
|
||||
public FillFlowContainer DownloadButtonsContainer;
|
||||
|
||||
public readonly FillFlowContainer DownloadButtonsContainer;
|
||||
|
||||
public readonly BeatmapPicker Picker;
|
||||
|
||||
|
@ -27,7 +27,7 @@ namespace osu.Game.Overlays
|
||||
public const float TOP_PADDING = 25;
|
||||
public const float RIGHT_WIDTH = 275;
|
||||
|
||||
public readonly Header Header;
|
||||
protected readonly Header Header;
|
||||
|
||||
private RulesetStore rulesets;
|
||||
|
||||
|
@ -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