1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-18 22:02:54 +08:00
osu-lazer/osu.Game/Overlays/Settings/Sections/Gameplay/GeneralSettings.cs

45 lines
1.5 KiB
C#
Raw Normal View History

2018-01-05 19:21:19 +08: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 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",
Bindable = config.GetBindable<double>(OsuSetting.DimLevel),
KeyboardStep = 0.1f
},
2017-12-26 09:11:49 +08:00
new SettingsSlider<double>
{
LabelText = "Background blur",
Bindable = config.GetBindable<double>(OsuSetting.BlurLevel),
KeyboardStep = 0.1f
2017-12-26 09:18:57 +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
},
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
}