osu/osu.Game/Overlays/Settings/Sections/Gameplay/GeneralSettings.cs

39 lines
1.3 KiB
C#
Raw Normal View History

// 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 10:13:10 +00: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 22:31:21 +00:00
LabelText = "Background dim",
Bindable = config.GetBindable<double>(OsuSetting.DimLevel),
KeyboardStep = 0.1f
},
new SettingsCheckbox
2017-03-31 13:43:31 +00:00
{
LabelText = "Show score overlay",
2017-05-15 01:56:27 +00:00
Bindable = config.GetBindable<bool>(OsuSetting.ShowInterface)
2017-03-31 13:43:31 +00:00
},
new SettingsCheckbox
{
LabelText = "Always show key overlay",
2017-05-15 01:56:27 +00:00
Bindable = config.GetBindable<bool>(OsuSetting.KeyOverlay)
},
};
}
}
2016-12-01 22:28:20 +00:00
}