mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +09:00
Make title in DrawableBeatmapList a property
This commit is contained in:
@ -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";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user