2019-01-24 16:43:03 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-03-06 21:07:46 +08:00
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Framework.Configuration;
|
|
|
|
|
using osu.Framework.Graphics;
|
2021-07-15 11:50:34 +08:00
|
|
|
|
using osu.Framework.Localisation;
|
2020-11-18 18:15:56 +08:00
|
|
|
|
using osu.Framework.Screens;
|
2021-08-12 12:26:42 +08:00
|
|
|
|
using osu.Game.Localisation;
|
2022-04-18 16:49:28 +08:00
|
|
|
|
using osu.Game.Screens;
|
2020-11-18 18:15:56 +08:00
|
|
|
|
using osu.Game.Screens.Import;
|
2022-06-07 22:10:08 +08:00
|
|
|
|
using osu.Game.Screens.Utility;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2021-11-23 12:09:41 +08:00
|
|
|
|
namespace osu.Game.Overlays.Settings.Sections.DebugSettings
|
2017-03-06 21:07:46 +08:00
|
|
|
|
{
|
2017-05-15 09:55:29 +08:00
|
|
|
|
public partial class GeneralSettings : SettingsSubsection
|
2017-03-06 21:07:46 +08:00
|
|
|
|
{
|
2023-09-06 14:00:07 +08:00
|
|
|
|
protected override LocalisableString Header => CommonStrings.General;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2023-06-24 20:35:23 +08:00
|
|
|
|
[BackgroundDependencyLoader]
|
2023-06-23 23:59:36 +08:00
|
|
|
|
private void load(FrameworkDebugConfigManager config, FrameworkConfigManager frameworkConfig, IPerformFromScreenRunner? performer)
|
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
|
|
|
|
{
|
2021-08-12 12:26:42 +08:00
|
|
|
|
LabelText = DebugSettingsStrings.ShowLogOverlay,
|
2020-10-06 16:18:41 +08:00
|
|
|
|
Current = frameworkConfig.GetBindable<bool>(FrameworkSetting.ShowLogOverlay)
|
2017-05-19 21:46:51 +08:00
|
|
|
|
},
|
|
|
|
|
new SettingsCheckbox
|
2019-06-06 15:49:42 +08:00
|
|
|
|
{
|
2021-08-12 12:26:42 +08:00
|
|
|
|
LabelText = DebugSettingsStrings.BypassFrontToBackPass,
|
2020-10-06 16:18:41 +08:00
|
|
|
|
Current = config.GetBindable<bool>(DebugSetting.BypassFrontToBackPass)
|
2022-06-07 13:40:28 +08:00
|
|
|
|
},
|
|
|
|
|
new SettingsButton
|
|
|
|
|
{
|
|
|
|
|
Text = DebugSettingsStrings.ImportFiles,
|
|
|
|
|
Action = () => performer?.PerformFromScreen(menu => menu.Push(new FileImportScreen()))
|
|
|
|
|
},
|
|
|
|
|
new SettingsButton
|
|
|
|
|
{
|
2024-02-03 05:08:36 +08:00
|
|
|
|
Text = DebugSettingsStrings.RunLatencyCertifier,
|
2022-06-07 22:34:19 +08:00
|
|
|
|
Action = () => performer?.PerformFromScreen(menu => menu.Push(new LatencyCertifierScreen()))
|
2019-06-06 15:49:42 +08:00
|
|
|
|
}
|
2017-03-06 21:07:46 +08:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|