mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:12:54 +08:00
Fix incorrect indentation
I used this for the o!f example.
This commit is contained in:
parent
3c3ff8be0d
commit
6d6604e2f0
@ -7,32 +7,32 @@ using osu.Game.Resources.Localisation.Web;
|
|||||||
|
|
||||||
namespace osu.Game.Overlays.BeatmapListing
|
namespace osu.Game.Overlays.BeatmapListing
|
||||||
{
|
{
|
||||||
[LocalisableEnum(typeof(SearchPlayedEnumLocalisationMapper))]
|
[LocalisableEnum(typeof(SearchPlayedEnumLocalisationMapper))]
|
||||||
public enum SearchPlayed
|
public enum SearchPlayed
|
||||||
{
|
|
||||||
Any,
|
|
||||||
Played,
|
|
||||||
Unplayed
|
|
||||||
}
|
|
||||||
|
|
||||||
public class SearchPlayedEnumLocalisationMapper : EnumLocalisationMapper<SearchPlayed>
|
|
||||||
{
|
|
||||||
public override LocalisableString Map(SearchPlayed value)
|
|
||||||
{
|
{
|
||||||
switch (value)
|
Any,
|
||||||
|
Played,
|
||||||
|
Unplayed
|
||||||
|
}
|
||||||
|
|
||||||
|
public class SearchPlayedEnumLocalisationMapper : EnumLocalisationMapper<SearchPlayed>
|
||||||
|
{
|
||||||
|
public override LocalisableString Map(SearchPlayed value)
|
||||||
{
|
{
|
||||||
case SearchPlayed.Any:
|
switch (value)
|
||||||
return BeatmapsStrings.PlayedAny;
|
{
|
||||||
|
case SearchPlayed.Any:
|
||||||
|
return BeatmapsStrings.PlayedAny;
|
||||||
|
|
||||||
case SearchPlayed.Played:
|
case SearchPlayed.Played:
|
||||||
return BeatmapsStrings.PlayedPlayed;
|
return BeatmapsStrings.PlayedPlayed;
|
||||||
|
|
||||||
case SearchPlayed.Unplayed:
|
case SearchPlayed.Unplayed:
|
||||||
return BeatmapsStrings.PlayedUnplayed;
|
return BeatmapsStrings.PlayedUnplayed;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw new ArgumentOutOfRangeException(nameof(value), value, null);
|
throw new ArgumentOutOfRangeException(nameof(value), value, null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user