1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 14:37:30 +08:00
osu-lazer/osu.Game/Overlays/Settings/Sections/Gameplay/GeneralSettings.cs

38 lines
1.2 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 18:13:10 +08: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-02 06:31:21 +08:00
LabelText = "Background dim",
2017-05-15 09:56:27 +08:00
Bindable = config.GetBindable<double>(OsuSetting.DimLevel)
},
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
},
new SettingsCheckbox
{
LabelText = "Always show key overlay",
2017-05-15 09:56:27 +08:00
Bindable = config.GetBindable<bool>(OsuSetting.KeyOverlay)
},
};
}
}
2016-12-02 06:28:20 +08:00
}