2023-06-23 00:37:25 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
2021-10-12 13:26:57 +08:00
|
|
|
|
// 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
|
|
|
|
|
{
|
2022-11-24 13:32:20 +08:00
|
|
|
|
public partial class AudioSettings : SettingsSubsection
|
2021-10-12 13:26:57 +08:00
|
|
|
|
{
|
|
|
|
|
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-26 14:06:27 +08:00
|
|
|
|
ClassicDefault = 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
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|