mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 10:22:54 +08:00
Remove obsoleted PositionalHitsounds
global setting
This commit is contained in:
parent
71970d83cf
commit
08832ae593
@ -118,7 +118,6 @@ namespace osu.Game.Configuration
|
|||||||
SetDefault(OsuSetting.Prefer24HourTime, CultureInfo.CurrentCulture.DateTimeFormat.ShortTimePattern.Contains(@"tt"));
|
SetDefault(OsuSetting.Prefer24HourTime, CultureInfo.CurrentCulture.DateTimeFormat.ShortTimePattern.Contains(@"tt"));
|
||||||
|
|
||||||
// Gameplay
|
// Gameplay
|
||||||
SetDefault(OsuSetting.PositionalHitsounds, true); // replaced by level setting below, can be removed 20220703.
|
|
||||||
SetDefault(OsuSetting.PositionalHitsoundsLevel, 0.2f, 0, 1);
|
SetDefault(OsuSetting.PositionalHitsoundsLevel, 0.2f, 0, 1);
|
||||||
SetDefault(OsuSetting.DimLevel, 0.7, 0, 1, 0.01);
|
SetDefault(OsuSetting.DimLevel, 0.7, 0, 1, 0.01);
|
||||||
SetDefault(OsuSetting.BlurLevel, 0, 0, 1, 0.01);
|
SetDefault(OsuSetting.BlurLevel, 0, 0, 1, 0.01);
|
||||||
@ -202,14 +201,11 @@ namespace osu.Game.Configuration
|
|||||||
if (!int.TryParse(pieces[0], out int year)) return;
|
if (!int.TryParse(pieces[0], out int year)) return;
|
||||||
if (!int.TryParse(pieces[1], out int monthDay)) return;
|
if (!int.TryParse(pieces[1], out int monthDay)) return;
|
||||||
|
|
||||||
|
// ReSharper disable once UnusedVariable
|
||||||
int combined = (year * 10000) + monthDay;
|
int combined = (year * 10000) + monthDay;
|
||||||
|
|
||||||
if (combined < 20220103)
|
// migrations can be added here using a condition like:
|
||||||
{
|
// if (combined < 20220103) { performMigration() }
|
||||||
var positionalHitsoundsEnabled = GetBindable<bool>(OsuSetting.PositionalHitsounds);
|
|
||||||
if (!positionalHitsoundsEnabled.Value)
|
|
||||||
SetValue(OsuSetting.PositionalHitsoundsLevel, 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override TrackedSettings CreateTrackedSettings()
|
public override TrackedSettings CreateTrackedSettings()
|
||||||
@ -295,7 +291,6 @@ namespace osu.Game.Configuration
|
|||||||
ShowStoryboard,
|
ShowStoryboard,
|
||||||
KeyOverlay,
|
KeyOverlay,
|
||||||
GameplayLeaderboard,
|
GameplayLeaderboard,
|
||||||
PositionalHitsounds,
|
|
||||||
PositionalHitsoundsLevel,
|
PositionalHitsoundsLevel,
|
||||||
AlwaysPlayFirstComboBreak,
|
AlwaysPlayFirstComboBreak,
|
||||||
FloatingComments,
|
FloatingComments,
|
||||||
|
Loading…
Reference in New Issue
Block a user