1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-07 01:07:20 +08:00

45 lines
1.5 KiB
C#
Raw Normal View History

2018-01-05 20:21:19 +09:00
// Copyright (c) 2007-2018 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;
namespace osu.Game.Overlays.Settings.Sections.Gameplay
{
public class GeneralSettings : SettingsSubsection
{
protected override string Header => "General";
[BackgroundDependencyLoader]
private void load(OsuConfigManager config)
{
Children = new Drawable[]
{
new SettingsSlider<double>
{
2016-12-01 17:31:21 -05:00
LabelText = "Background dim",
Bindable = config.GetBindable<double>(OsuSetting.DimLevel),
KeyboardStep = 0.1f
},
2017-12-25 19:11:49 -06:00
new SettingsSlider<double>
{
LabelText = "Background blur",
Bindable = config.GetBindable<double>(OsuSetting.BlurLevel),
KeyboardStep = 0.1f
2017-12-25 19:18:57 -06: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
},
new SettingsCheckbox
{
LabelText = "Always show key overlay",
2017-05-15 10:56:27 +09:00
Bindable = config.GetBindable<bool>(OsuSetting.KeyOverlay)
},
};
}
}
2016-12-01 17:28:20 -05:00
}