2017-02-07 13:59:30 +09: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 19:13:10 +09:00
|
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Game.Configuration;
|
|
|
|
|
|
2017-05-15 10:55:29 +09:00
|
|
|
|
namespace osu.Game.Overlays.Settings.Sections.Gameplay
|
2016-11-30 10:32:07 -05:00
|
|
|
|
{
|
2017-05-15 10:55:29 +09:00
|
|
|
|
public class GeneralSettings : SettingsSubsection
|
2016-11-30 10:32:07 -05:00
|
|
|
|
{
|
|
|
|
|
protected override string Header => "General";
|
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load(OsuConfigManager config)
|
|
|
|
|
{
|
|
|
|
|
Children = new Drawable[]
|
|
|
|
|
{
|
2017-05-15 10:55:29 +09:00
|
|
|
|
new SettingsSlider<double>
|
2016-11-30 10:32:07 -05:00
|
|
|
|
{
|
2016-12-01 17:31:21 -05:00
|
|
|
|
LabelText = "Background dim",
|
2017-05-15 10:56:27 +09:00
|
|
|
|
Bindable = config.GetBindable<double>(OsuSetting.DimLevel)
|
2016-11-30 10:32:07 -05:00
|
|
|
|
},
|
2017-05-15 10:55:29 +09:00
|
|
|
|
new SettingsCheckbox
|
2017-03-31 16:43:31 +03:00
|
|
|
|
{
|
|
|
|
|
LabelText = "Show score overlay",
|
2017-05-15 10:56:27 +09:00
|
|
|
|
Bindable = config.GetBindable<bool>(OsuSetting.ShowInterface)
|
2017-03-31 16:43:31 +03:00
|
|
|
|
},
|
2017-05-15 10:55:29 +09:00
|
|
|
|
new SettingsCheckbox
|
2016-11-30 10:32:07 -05:00
|
|
|
|
{
|
|
|
|
|
LabelText = "Always show key overlay",
|
2017-05-15 10:56:27 +09:00
|
|
|
|
Bindable = config.GetBindable<bool>(OsuSetting.KeyOverlay)
|
2016-11-30 10:32:07 -05:00
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-12-01 17:28:20 -05:00
|
|
|
|
}
|