mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 09:27:18 +09:00
Localise Ranks section.
This commit is contained in:
parent
d17f658985
commit
fbbf8ce5a3
@ -21,7 +21,7 @@ namespace osu.Game.Overlays.Profile.Sections.Beatmaps
|
|||||||
private readonly BeatmapSetType type;
|
private readonly BeatmapSetType type;
|
||||||
|
|
||||||
public PaginatedBeatmapContainer(BeatmapSetType type, Bindable<User> user, LocalisableString headerText)
|
public PaginatedBeatmapContainer(BeatmapSetType type, Bindable<User> user, LocalisableString headerText)
|
||||||
: base(user, headerText, null)
|
: base(user, headerText)
|
||||||
{
|
{
|
||||||
this.type = type;
|
this.type = type;
|
||||||
ItemsPerPage = 6;
|
ItemsPerPage = 6;
|
||||||
|
@ -39,7 +39,7 @@ namespace osu.Game.Overlays.Profile.Sections
|
|||||||
private OsuSpriteText missing;
|
private OsuSpriteText missing;
|
||||||
private readonly LocalisableString? missingText;
|
private readonly LocalisableString? missingText;
|
||||||
|
|
||||||
protected PaginatedProfileSubsection(Bindable<User> user, LocalisableString headerText, LocalisableString? missingText)
|
protected PaginatedProfileSubsection(Bindable<User> user, LocalisableString headerText, LocalisableString? missingText = null)
|
||||||
: base(user, headerText, CounterVisibilityState.AlwaysVisible)
|
: base(user, headerText, CounterVisibilityState.AlwaysVisible)
|
||||||
{
|
{
|
||||||
this.missingText = missingText;
|
this.missingText = missingText;
|
||||||
|
@ -11,6 +11,7 @@ using osu.Game.Online.API.Requests.Responses;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using osu.Game.Online.API;
|
using osu.Game.Online.API;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
|
using osu.Framework.Localisation;
|
||||||
|
|
||||||
namespace osu.Game.Overlays.Profile.Sections.Ranks
|
namespace osu.Game.Overlays.Profile.Sections.Ranks
|
||||||
{
|
{
|
||||||
@ -18,7 +19,7 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
|
|||||||
{
|
{
|
||||||
private readonly ScoreType type;
|
private readonly ScoreType type;
|
||||||
|
|
||||||
public PaginatedScoreContainer(ScoreType type, Bindable<User> user, string headerText)
|
public PaginatedScoreContainer(ScoreType type, Bindable<User> user, LocalisableString headerText)
|
||||||
: base(user, headerText)
|
: base(user, headerText)
|
||||||
{
|
{
|
||||||
this.type = type;
|
this.type = type;
|
||||||
|
@ -18,8 +18,8 @@ namespace osu.Game.Overlays.Profile.Sections
|
|||||||
{
|
{
|
||||||
Children = new[]
|
Children = new[]
|
||||||
{
|
{
|
||||||
new PaginatedScoreContainer(ScoreType.Best, User, "Best Performance"),
|
new PaginatedScoreContainer(ScoreType.Best, User, UsersStrings.ShowExtraTopRanksBestTitle),
|
||||||
new PaginatedScoreContainer(ScoreType.Firsts, User, "First Place Ranks")
|
new PaginatedScoreContainer(ScoreType.Firsts, User, UsersStrings.ShowExtraTopRanksFirstTitle)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user