2017-03-06 21:07:46 +08:00
|
|
|
|
// 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.Configuration;
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
|
2017-05-15 09:55:29 +08:00
|
|
|
|
namespace osu.Game.Overlays.Settings.Sections.Debug
|
2017-03-06 21:07:46 +08:00
|
|
|
|
{
|
2017-05-15 09:55:29 +08:00
|
|
|
|
public class GeneralSettings : SettingsSubsection
|
2017-03-06 21:07:46 +08:00
|
|
|
|
{
|
|
|
|
|
protected override string Header => "General";
|
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
2017-05-19 21:46:51 +08:00
|
|
|
|
private void load(FrameworkDebugConfigManager config, FrameworkConfigManager frameworkConfig)
|
2017-03-06 21:07:46 +08:00
|
|
|
|
{
|
|
|
|
|
Children = new Drawable[]
|
|
|
|
|
{
|
2017-05-15 09:55:29 +08:00
|
|
|
|
new SettingsCheckbox
|
2017-03-06 21:07:46 +08:00
|
|
|
|
{
|
|
|
|
|
LabelText = "Bypass caching",
|
2017-05-19 21:53:08 +08:00
|
|
|
|
Bindable = config.GetBindable<bool>(DebugSetting.BypassCaching)
|
2017-05-19 21:46:51 +08:00
|
|
|
|
},
|
|
|
|
|
new SettingsCheckbox
|
|
|
|
|
{
|
|
|
|
|
LabelText = "Debug logs",
|
2017-05-20 00:14:51 +08:00
|
|
|
|
Bindable = frameworkConfig.GetBindable<bool>(FrameworkSetting.ShowLogOverlay)
|
2017-03-06 21:07:46 +08:00
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|