mirror of
https://github.com/ppy/osu.git
synced 2024-11-18 06:52:55 +08:00
44 lines
1.6 KiB
C#
44 lines
1.6 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.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<bool>(FrameworkConfig.Fullscreen),
|
|
},
|
|
new OsuCheckbox
|
|
{
|
|
LabelText = "Letterboxing",
|
|
Bindable = config.GetBindable<bool>(FrameworkConfig.Letterboxing),
|
|
},
|
|
new OptionSlider<int>
|
|
{
|
|
LabelText = "Horizontal position",
|
|
Bindable = (BindableInt)config.GetBindable<int>(FrameworkConfig.LetterboxPositionX)
|
|
},
|
|
new OptionSlider<int>
|
|
{
|
|
LabelText = "Vertical position",
|
|
Bindable = (BindableInt)config.GetBindable<int>(FrameworkConfig.LetterboxPositionY)
|
|
},
|
|
};
|
|
}
|
|
}
|
|
} |