1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 11:42:54 +08:00

Binding logic fix, nullification of unnecessary path

This commit is contained in:
mk-56 2021-11-28 03:25:11 +01:00
parent eaa464e548
commit e83115ad5e
2 changed files with 4 additions and 3 deletions

View File

@ -97,7 +97,7 @@ namespace osu.Game.Configuration
SetDefault(OsuSetting.MenuParallax, true);
// Gameplay
SetDefault(OsuSetting.PositionalHitsoundsLevel, 0.8f, 0.1f, 1f);
SetDefault(OsuSetting.PositionalHitsoundsLevel, 0.8f, 0, 1);
SetDefault(OsuSetting.DimLevel, 0.8, 0, 1, 0.01);
SetDefault(OsuSetting.BlurLevel, 0, 0, 1, 0.01);
SetDefault(OsuSetting.LightenDuringBreaks, true);

View File

@ -171,6 +171,7 @@ namespace osu.Game.Rulesets.Objects.Drawables
private void load(OsuConfigManager config, ISkinSource skinSource)
{
config.BindWith(OsuSetting.PositionalHitSounds, userPositionalHitSounds);
config.BindWith(OsuSetting.PositionalHitsoundsLevel, positionalHitsoundsLevel);
// Explicit non-virtual function call.
base.AddInternal(Samples = new PausableSkinnableSound());
@ -534,9 +535,9 @@ namespace osu.Game.Rulesets.Objects.Drawables
/// <param name="position">The lookup X position. Generally should be <see cref="SamplePlaybackPosition"/>.</param>
protected double CalculateSamplePlaybackBalance(double position)
{
float balance_adjust_amount = positionalHitsoundsLevel.Value;
float balance_adjust_amount = positionalHitsoundsLevel.Value*2;
return balance_adjust_amount * (userPositionalHitSounds.Value ? position - 0.5f : 0);
return balance_adjust_amount * (true ? position - 0.5f : 0);
}
/// <summary>