mirror of
https://github.com/ppy/osu.git
synced 2025-03-02 04:32:56 +08:00
39 lines
1.3 KiB
C#
39 lines
1.3 KiB
C#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Framework.Allocation;
|
|
using osu.Framework.Graphics;
|
|
using osu.Game.Configuration;
|
|
using osu.Game.Graphics.UserInterface;
|
|
|
|
namespace osu.Game.Overlays.Options.Sections.Gameplay
|
|
{
|
|
public class GeneralOptions : OptionsSubsection
|
|
{
|
|
protected override string Header => "General";
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load(OsuConfigManager config)
|
|
{
|
|
Children = new Drawable[]
|
|
{
|
|
new OptionSlider<double>
|
|
{
|
|
LabelText = "Background dim",
|
|
Bindable = config.GetBindable<double>(OsuConfig.DimLevel)
|
|
},
|
|
new OsuCheckbox
|
|
{
|
|
LabelText = "Show score overlay",
|
|
Bindable = config.GetBindable<bool>(OsuConfig.ShowInterface)
|
|
},
|
|
new OsuCheckbox
|
|
{
|
|
LabelText = "Always show key overlay",
|
|
Bindable = config.GetBindable<bool>(OsuConfig.KeyOverlay)
|
|
},
|
|
};
|
|
}
|
|
}
|
|
}
|