1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-27 01:03:45 +08:00

rename scopes

This commit is contained in:
Hivie
2025-08-04 14:02:40 +01:00
Unverified
parent 8d76ebae29
commit 8a2053bf61
3 changed files with 10 additions and 10 deletions
+4 -4
View File
@@ -210,14 +210,14 @@ namespace osu.Game.Localisation
public static LocalisableString OpenDiscussionPage => new TranslatableString(getKey(@"open_discussion_page"), @"Open beatmap discussion page");
/// <summary>
/// "This difficulty"
/// "Difficulty"
/// </summary>
public static LocalisableString ThisDifficulty => new TranslatableString(getKey(@"this_difficulty"), @"This difficulty");
public static LocalisableString Difficulty => new TranslatableString(getKey(@"this_difficulty"), @"Difficulty");
/// <summary>
/// "General"
/// "Beatmapset"
/// </summary>
public static LocalisableString General => new TranslatableString(getKey(@"general"), @"General");
public static LocalisableString Beatmapset => new TranslatableString(getKey(@"this_beatmapset"), @"Beatmapset");
private static string getKey(string key) => $@"{prefix}:{key}";
}
@@ -11,13 +11,13 @@ namespace osu.Game.Rulesets.Edit.Checks.Components
/// <summary>
/// Run checks that apply to the current difficulty.
/// </summary>
[LocalisableDescription(typeof(EditorStrings), nameof(EditorStrings.ThisDifficulty))]
ThisDifficulty,
[LocalisableDescription(typeof(EditorStrings), nameof(EditorStrings.Difficulty))]
Difficulty,
/// <summary>
/// Run checks that apply to the beatmapset as a whole.
/// </summary>
[LocalisableDescription(typeof(EditorStrings), nameof(EditorStrings.General))]
General,
[LocalisableDescription(typeof(EditorStrings), nameof(EditorStrings.Beatmapset))]
Beatmapset,
}
}
+2 -2
View File
@@ -106,11 +106,11 @@ namespace osu.Game.Screens.Edit.Verify
switch (verify.VerifyChecksScope.Value)
{
case VerifyChecksScope.General:
case VerifyChecksScope.Beatmapset:
issues = filterByScope(generalVerifier.Run(context), true);
break;
case VerifyChecksScope.ThisDifficulty:
case VerifyChecksScope.Difficulty:
var generalIssues = filterByScope(generalVerifier.Run(context), false);
var rulesetIssues = rulesetVerifier?.Run(context) ?? Enumerable.Empty<Issue>();
issues = generalIssues.Concat(rulesetIssues);