mirror of
https://github.com/ppy/osu
synced 2024-12-17 20:35:21 +00:00
variable naming + loc
This commit is contained in:
parent
7ca2a431e6
commit
e0a7559d85
@ -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"
|
||||
|
@ -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)
|
||||
}
|
||||
};
|
||||
|
@ -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);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user