//Copyright (c) 2007-2016 ppy Pty Ltd . //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; using osu.Game.Graphics.UserInterface; namespace osu.Game.Overlays.Options.Sections.Graphics { public class LayoutOptions : OptionsSubsection { protected override string Header => "Layout"; [BackgroundDependencyLoader] private void load(FrameworkConfigManager config) { Children = new Drawable[] { new OptionLabel { Text = "Resolution: TODO dropdown" }, new OsuCheckbox { LabelText = "Fullscreen mode", Bindable = config.GetBindable(FrameworkConfig.Fullscreen), }, new OsuCheckbox { LabelText = "Letterboxing", Bindable = config.GetBindable(FrameworkConfig.Letterboxing), }, new OptionSlider { LabelText = "Horizontal position", Bindable = (BindableInt)config.GetBindable(FrameworkConfig.LetterboxPositionX) }, new OptionSlider { LabelText = "Vertical position", Bindable = (BindableInt)config.GetBindable(FrameworkConfig.LetterboxPositionY) }, }; } } }