1
0
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:
Andrei Zavatski 2020-08-02 21:35:24 +03:00
parent ca57c70961
commit 7d83cdbf1c
3 changed files with 4 additions and 4 deletions

View File

@ -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);
}

View File

@ -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";
}
}

View File

@ -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";
}
}