mirror of
https://github.com/ppy/osu.git
synced 2025-03-15 12:47:18 +08:00
beatmapSet can be private.
This commit is contained in:
parent
ce73ae792f
commit
abfad501b6
@ -27,15 +27,17 @@ namespace osu.Game.Beatmaps.Drawable
|
||||
|
||||
private BeatmapPanel selectedPanel;
|
||||
|
||||
/// <summary>
|
||||
/// Fires when one of our difficulties was selected. Will fire on first expand.
|
||||
/// </summary>
|
||||
/// <summary>
|
||||
/// Fires when one of our difficulties was selected. Will fire on first expand.
|
||||
/// </summary>
|
||||
public Action<BeatmapGroup, BeatmapInfo> SelectionChanged;
|
||||
|
||||
public BeatmapSetInfo BeatmapSet;
|
||||
private BeatmapSetInfo beatmapSet;
|
||||
private BeatmapSetHeader header;
|
||||
private FlowContainer difficulties;
|
||||
private GroupState state;
|
||||
|
||||
private GroupState state;
|
||||
|
||||
public GroupState State
|
||||
{
|
||||
get { return state; }
|
||||
@ -72,7 +74,7 @@ namespace osu.Game.Beatmaps.Drawable
|
||||
|
||||
public BeatmapGroup(BeatmapSetInfo beatmapSet)
|
||||
{
|
||||
BeatmapSet = beatmapSet;
|
||||
this.beatmapSet = beatmapSet;
|
||||
Alpha = 0;
|
||||
AutoSizeAxes = Axes.Y;
|
||||
RelativeSizeAxes = Axes.X;
|
||||
@ -101,8 +103,8 @@ namespace osu.Game.Beatmaps.Drawable
|
||||
Spacing = new Vector2(0, 5),
|
||||
Direction = FlowDirection.VerticalOnly,
|
||||
Alpha = 0,
|
||||
Children = BeatmapSet.Beatmaps.Select(b =>
|
||||
new BeatmapPanel(BeatmapSet, b)
|
||||
Children = this.beatmapSet.Beatmaps.Select(b =>
|
||||
new BeatmapPanel(this.beatmapSet, b)
|
||||
{
|
||||
GainedSelection = panelGainedSelection,
|
||||
Anchor = Anchor.TopRight,
|
||||
|
Loading…
x
Reference in New Issue
Block a user