2021-10-12 13:26:57 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Localisation;
|
|
|
|
using osu.Game.Configuration;
|
|
|
|
using osu.Game.Localisation;
|
2021-11-28 09:58:08 +08:00
|
|
|
|
2021-10-12 13:26:57 +08:00
|
|
|
namespace osu.Game.Overlays.Settings.Sections.Gameplay
|
|
|
|
{
|
|
|
|
public class AudioSettings : SettingsSubsection
|
|
|
|
{
|
|
|
|
protected override LocalisableString Header => GameplaySettingsStrings.AudioHeader;
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
2021-12-17 20:16:06 +08:00
|
|
|
private void load(OsuConfigManager config, OsuConfigManager osuConfig)
|
2021-10-12 13:26:57 +08:00
|
|
|
{
|
|
|
|
Children = new Drawable[]
|
2021-12-17 20:16:06 +08:00
|
|
|
{
|
2022-01-03 11:53:58 +08:00
|
|
|
new SettingsSlider<float>
|
2021-11-28 09:58:08 +08:00
|
|
|
{
|
2022-01-03 11:53:58 +08:00
|
|
|
LabelText = AudioSettingsStrings.PositionalLevel,
|
|
|
|
Keywords = new[] { @"positional", @"balance" },
|
|
|
|
Current = osuConfig.GetBindable<float>(OsuSetting.PositionalHitsoundsLevel),
|
|
|
|
KeyboardStep = 0.01f,
|
|
|
|
DisplayAsPercentage = true
|
2021-11-28 09:58:08 +08:00
|
|
|
},
|
2021-10-12 13:26:57 +08:00
|
|
|
new SettingsCheckbox
|
|
|
|
{
|
2022-04-23 20:53:47 +08:00
|
|
|
GetClassicDefault = () => false,
|
2021-10-12 13:26:57 +08:00
|
|
|
LabelText = GameplaySettingsStrings.AlwaysPlayFirstComboBreak,
|
|
|
|
Current = config.GetBindable<bool>(OsuSetting.AlwaysPlayFirstComboBreak)
|
2021-12-17 20:16:06 +08:00
|
|
|
}
|
2021-10-12 13:26:57 +08:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|