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");
/// <summary>
/// "Song select background blur"
/// "Background blur"
/// </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>
/// "no limit"

View File

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

View File

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