mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 09:32:55 +08:00
Make title in DrawableBeatmapList a property
This commit is contained in:
parent
ca57c70961
commit
7d83cdbf1c
@ -41,7 +41,7 @@ namespace osu.Game.Overlays.Dashboard.Dashboard
|
||||
{
|
||||
Font = OsuFont.GetFont(size: 16, weight: FontWeight.Bold),
|
||||
Colour = colourProvider.Light1,
|
||||
Text = CreateTitle(),
|
||||
Text = Title,
|
||||
Padding = new MarginPadding { Left = 10 }
|
||||
}
|
||||
}
|
||||
@ -50,7 +50,7 @@ namespace osu.Game.Overlays.Dashboard.Dashboard
|
||||
flow.AddRange(beatmaps.Select(CreateBeatmapPanel));
|
||||
}
|
||||
|
||||
protected abstract string CreateTitle();
|
||||
protected abstract string Title { get; }
|
||||
|
||||
protected abstract DashboardBeatmapPanel CreateBeatmapPanel(BeatmapSetInfo setInfo);
|
||||
}
|
||||
|
@ -15,6 +15,6 @@ namespace osu.Game.Overlays.Dashboard.Dashboard
|
||||
|
||||
protected override DashboardBeatmapPanel CreateBeatmapPanel(BeatmapSetInfo setInfo) => new DashboardNewBeatmapPanel(setInfo);
|
||||
|
||||
protected override string CreateTitle() => "New Ranked Beatmaps";
|
||||
protected override string Title => "New Ranked Beatmaps";
|
||||
}
|
||||
}
|
||||
|
@ -15,6 +15,6 @@ namespace osu.Game.Overlays.Dashboard.Dashboard
|
||||
|
||||
protected override DashboardBeatmapPanel CreateBeatmapPanel(BeatmapSetInfo setInfo) => new DashboardPopularBeatmapPanel(setInfo);
|
||||
|
||||
protected override string CreateTitle() => "Popular Beatmaps";
|
||||
protected override string Title => "Popular Beatmaps";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user