mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 16:12:57 +08:00
Localize ruleset filter any filter button.
This commit is contained in:
parent
4cb9c6a842
commit
263370e1ff
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
|
using osu.Framework.Localisation;
|
||||||
using osu.Game.Resources.Localisation.Web;
|
using osu.Game.Resources.Localisation.Web;
|
||||||
using osu.Game.Rulesets;
|
using osu.Game.Rulesets;
|
||||||
|
|
||||||
@ -22,14 +23,21 @@ namespace osu.Game.Overlays.BeatmapListing
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(RulesetStore rulesets)
|
private void load(RulesetStore rulesets)
|
||||||
{
|
{
|
||||||
AddItem(new RulesetInfo
|
AddTabItem(new RulesetFilterTabItemAny());
|
||||||
{
|
|
||||||
Name = @"Any"
|
|
||||||
});
|
|
||||||
|
|
||||||
foreach (var r in rulesets.AvailableRulesets)
|
foreach (var r in rulesets.AvailableRulesets)
|
||||||
AddItem(r);
|
AddItem(r);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private class RulesetFilterTabItemAny : FilterTabItem<RulesetInfo>
|
||||||
|
{
|
||||||
|
protected override LocalisableString LabelFor(RulesetInfo info) => BeatmapsStrings.ModeAny;
|
||||||
|
|
||||||
|
public RulesetFilterTabItemAny()
|
||||||
|
: base(new RulesetInfo())
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user