1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 19:12:54 +08:00

variable naming + loc

This commit is contained in:
Jérémiah DÉCOMBE 2023-01-24 09:55:08 +01:00
parent 7ca2a431e6
commit e0a7559d85
3 changed files with 7 additions and 7 deletions

View File

@ -110,9 +110,9 @@ namespace osu.Game.Localisation
public static LocalisableString ModSelectHotkeyStyle => new TranslatableString(getKey(@"mod_select_hotkey_style"), @"Mod select hotkey style"); public static LocalisableString ModSelectHotkeyStyle => new TranslatableString(getKey(@"mod_select_hotkey_style"), @"Mod select hotkey style");
/// <summary> /// <summary>
/// "Song select background blur" /// "Background blur"
/// </summary> /// </summary>
public static LocalisableString SongSelectBackgroundBlurLevel => new TranslatableString(getKey(@"song_select_background_blur_level"), @"Song select background blur"); public static LocalisableString BackgroundBlurLevel => new TranslatableString(getKey(@"background_blur_level"), @"Background blur");
/// <summary> /// <summary>
/// "no limit" /// "no limit"

View File

@ -45,7 +45,7 @@ namespace osu.Game.Overlays.Settings.Sections.UserInterface
}, },
new SettingsCheckbox new SettingsCheckbox
{ {
LabelText = UserInterfaceStrings.SongSelectBackgroundBlurLevel, LabelText = UserInterfaceStrings.BackgroundBlurLevel,
Current = config.GetBindable<bool>(OsuSetting.SongSelectBackgoundBlur) Current = config.GetBindable<bool>(OsuSetting.SongSelectBackgoundBlur)
} }
}; };

View File

@ -125,13 +125,13 @@ namespace osu.Game.Screens.Select
[Resolved] [Resolved]
internal IOverlayManager? OverlayManager { get; private set; } internal IOverlayManager? OverlayManager { get; private set; }
private Bindable<bool> backgroundBlurLevel { get; set; } = new BindableBool(); private Bindable<bool> configBackgroundBlur { get; set; } = new BindableBool();
[BackgroundDependencyLoader(true)] [BackgroundDependencyLoader(true)]
private void load(AudioManager audio, OsuColour colours, ManageCollectionsDialog? manageCollectionsDialog, DifficultyRecommender? recommender, OsuConfigManager config) private void load(AudioManager audio, OsuColour colours, ManageCollectionsDialog? manageCollectionsDialog, DifficultyRecommender? recommender, OsuConfigManager config)
{ {
backgroundBlurLevel = config.GetBindable<bool>(OsuSetting.SongSelectBackgoundBlur); configBackgroundBlur = config.GetBindable<bool>(OsuSetting.SongSelectBackgoundBlur);
backgroundBlurLevel.BindValueChanged(e => configBackgroundBlur.BindValueChanged(e =>
{ {
if (this.IsCurrentScreen()) if (this.IsCurrentScreen())
{ {
@ -758,7 +758,7 @@ namespace osu.Game.Screens.Select
ApplyToBackground(backgroundModeBeatmap => ApplyToBackground(backgroundModeBeatmap =>
{ {
backgroundModeBeatmap.Beatmap = beatmap; backgroundModeBeatmap.Beatmap = beatmap;
backgroundModeBeatmap.BlurAmount.Value = backgroundBlurLevel.Value ? BACKGROUND_BLUR : 0f; backgroundModeBeatmap.BlurAmount.Value = configBackgroundBlur.Value ? BACKGROUND_BLUR : 0f;
backgroundModeBeatmap.FadeColour(Color4.White, 250); backgroundModeBeatmap.FadeColour(Color4.White, 250);
}); });