1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-19 02:52:54 +08:00
osu-lazer/osu.Game/Overlays/Options/Graphics/LayoutOptions.cs

40 lines
1.4 KiB
C#
Raw Normal View History

2016-11-09 11:38:40 +08:00
using osu.Framework;
using osu.Framework.Graphics;
2016-11-03 10:49:26 +08:00
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.UserInterface;
2016-11-09 11:38:40 +08:00
using osu.Game.Configuration;
2016-11-03 10:49:26 +08:00
2016-11-08 10:24:41 +08:00
namespace osu.Game.Overlays.Options.Graphics
2016-11-03 10:49:26 +08:00
{
public class LayoutOptions : OptionsSubsection
{
2016-11-09 11:38:40 +08:00
protected override string Header => "Layout";
private CheckBoxOption fullscreen, letterboxing;
2016-11-03 10:49:26 +08:00
public LayoutOptions()
{
Children = new Drawable[]
{
new SpriteText { Text = "Resolution: TODO dropdown" },
2016-11-09 11:38:40 +08:00
fullscreen = new CheckBoxOption { LabelText = "Fullscreen mode" },
letterboxing = new CheckBoxOption { LabelText = "Letterboxing" },
2016-11-03 10:49:26 +08:00
new SpriteText { Text = "Horizontal position" },
new SpriteText { Text = "TODO: slider" },
new SpriteText { Text = "Vertical position" },
new SpriteText { Text = "TODO: slider" },
};
2016-11-09 11:38:40 +08:00
}
protected override void Load(BaseGame game)
{
base.Load(game);
var osuGame = game as OsuGameBase;
if (osuGame != null)
{
fullscreen.Bindable = osuGame.Config.GetBindable<bool>(OsuConfig.Fullscreen);
letterboxing.Bindable = osuGame.Config.GetBindable<bool>(OsuConfig.Letterboxing);
}
2016-11-03 10:49:26 +08:00
}
}
}