2018-01-05 20:21:19 +09:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2017-02-07 13:59:30 +09:00
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
2016-12-06 18:56:20 +09:00
|
|
|
|
|
2016-11-10 17:40:42 -05:00
|
|
|
|
using osu.Framework.Allocation;
|
2017-01-25 18:39:41 +09:00
|
|
|
|
using osu.Framework.Configuration;
|
2016-11-08 22:38:40 -05:00
|
|
|
|
using osu.Framework.Graphics;
|
2017-05-03 20:34:53 +09:00
|
|
|
|
using osu.Game.Configuration;
|
2016-11-02 22:49:26 -04:00
|
|
|
|
|
2017-05-15 10:55:29 +09:00
|
|
|
|
namespace osu.Game.Overlays.Settings.Sections.Graphics
|
2016-11-12 19:44:16 +09:00
|
|
|
|
{
|
2017-05-15 10:55:29 +09:00
|
|
|
|
public class RendererSettings : SettingsSubsection
|
2016-11-12 19:44:16 +09:00
|
|
|
|
{
|
2016-11-08 22:38:40 -05:00
|
|
|
|
protected override string Header => "Renderer";
|
|
|
|
|
|
2016-11-12 19:44:16 +09:00
|
|
|
|
[BackgroundDependencyLoader]
|
2017-05-03 20:34:53 +09:00
|
|
|
|
private void load(FrameworkConfigManager config, OsuConfigManager osuConfig)
|
2016-11-08 22:38:40 -05:00
|
|
|
|
{
|
2016-11-10 17:40:42 -05:00
|
|
|
|
// NOTE: Compatability mode omitted
|
|
|
|
|
Children = new Drawable[]
|
2016-11-08 22:38:40 -05:00
|
|
|
|
{
|
2016-12-01 17:28:20 -05:00
|
|
|
|
// TODO: this needs to be a custom dropdown at some point
|
2017-05-15 10:55:29 +09:00
|
|
|
|
new SettingsEnumDropdown<FrameSync>
|
2016-12-01 17:28:20 -05:00
|
|
|
|
{
|
2016-12-01 17:33:30 -05:00
|
|
|
|
LabelText = "Frame limiter",
|
2017-05-15 10:55:29 +09:00
|
|
|
|
Bindable = config.GetBindable<FrameSync>(FrameworkSetting.FrameSync)
|
2016-12-01 17:28:20 -05:00
|
|
|
|
},
|
2017-05-15 10:55:29 +09:00
|
|
|
|
new SettingsCheckbox
|
2017-05-03 20:34:53 +09:00
|
|
|
|
{
|
|
|
|
|
LabelText = "Show FPS",
|
2017-05-15 10:56:27 +09:00
|
|
|
|
Bindable = osuConfig.GetBindable<bool>(OsuSetting.ShowFpsDisplay)
|
2017-05-03 20:34:53 +09:00
|
|
|
|
},
|
2016-11-10 17:40:42 -05:00
|
|
|
|
};
|
2016-11-12 19:44:16 +09:00
|
|
|
|
}
|
|
|
|
|
}
|
2017-05-04 23:07:24 +09:00
|
|
|
|
}
|