2017-02-07 12:59:30 +08:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
2017-02-03 18:13:10 +08:00
|
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Game.Configuration;
|
|
|
|
|
|
2017-05-15 09:55:29 +08:00
|
|
|
|
namespace osu.Game.Overlays.Settings.Sections.Gameplay
|
2016-11-30 23:32:07 +08:00
|
|
|
|
{
|
2017-05-15 09:55:29 +08:00
|
|
|
|
public class GeneralSettings : SettingsSubsection
|
2016-11-30 23:32:07 +08:00
|
|
|
|
{
|
|
|
|
|
protected override string Header => "General";
|
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load(OsuConfigManager config)
|
|
|
|
|
{
|
|
|
|
|
Children = new Drawable[]
|
|
|
|
|
{
|
2017-05-15 09:55:29 +08:00
|
|
|
|
new SettingsSlider<double>
|
2016-11-30 23:32:07 +08:00
|
|
|
|
{
|
2016-12-02 06:31:21 +08:00
|
|
|
|
LabelText = "Background dim",
|
2017-10-23 13:36:08 +08:00
|
|
|
|
Bindable = config.GetBindable<double>(OsuSetting.DimLevel),
|
|
|
|
|
KeyboardStep = 0.1f
|
2016-11-30 23:32:07 +08:00
|
|
|
|
},
|
2017-12-26 09:11:49 +08:00
|
|
|
|
new SettingsSlider<double>
|
|
|
|
|
{
|
|
|
|
|
LabelText = "Background blur",
|
|
|
|
|
Bindable = config.GetBindable<double>(OsuSetting.BlurLevel),
|
|
|
|
|
KeyboardStep = 0.1f
|
|
|
|
|
},
|
2017-05-15 09:55:29 +08:00
|
|
|
|
new SettingsCheckbox
|
2017-03-31 21:43:31 +08:00
|
|
|
|
{
|
|
|
|
|
LabelText = "Show score overlay",
|
2017-05-15 09:56:27 +08:00
|
|
|
|
Bindable = config.GetBindable<bool>(OsuSetting.ShowInterface)
|
2017-03-31 21:43:31 +08:00
|
|
|
|
},
|
2017-05-15 09:55:29 +08:00
|
|
|
|
new SettingsCheckbox
|
2016-11-30 23:32:07 +08:00
|
|
|
|
{
|
|
|
|
|
LabelText = "Always show key overlay",
|
2017-05-15 09:56:27 +08:00
|
|
|
|
Bindable = config.GetBindable<bool>(OsuSetting.KeyOverlay)
|
2016-11-30 23:32:07 +08:00
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-12-02 06:28:20 +08:00
|
|
|
|
}
|