1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-07 05:27:51 +08:00
osu-lazer/osu.Game/Overlays/Options/Gameplay/GeneralGameplayOptions.cs

43 lines
1.9 KiB
C#
Raw Normal View History

2016-11-09 11:38:40 +08:00
using osu.Framework;
using osu.Framework.Graphics;
2016-11-03 12:26:49 +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 12:26:49 +08:00
2016-11-08 10:24:41 +08:00
namespace osu.Game.Overlays.Options.Gameplay
2016-11-03 12:26:49 +08:00
{
public class GeneralGameplayOptions : OptionsSubsection
{
2016-11-09 11:38:40 +08:00
protected override string Header => "General";
private CheckBoxOption keyOverlay, hiddenApproachCircle, scaleManiaScroll, rememberManiaScroll;
2016-11-03 12:26:49 +08:00
public GeneralGameplayOptions()
{
Children = new Drawable[]
{
new SpriteText { Text = "Background dim: TODO slider" },
new SpriteText { Text = "Progress display: TODO dropdown" },
new SpriteText { Text = "Score meter type: TODO dropdown" },
new SpriteText { Text = "Score meter size: TODO slider" },
2016-11-09 11:38:40 +08:00
keyOverlay = new CheckBoxOption { LabelText = "Always show key overlay" },
hiddenApproachCircle = new CheckBoxOption { LabelText = "Show approach circle on first \"Hidden\" object" },
scaleManiaScroll = new CheckBoxOption { LabelText = "Scale osu!mania scroll speed with BPM" },
rememberManiaScroll = new CheckBoxOption { LabelText = "Remember osu!mania scroll speed per beatmap" },
2016-11-03 12:26:49 +08:00
};
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)
{
keyOverlay.Bindable = osuGame.Config.GetBindable<bool>(OsuConfig.KeyOverlay);
hiddenApproachCircle.Bindable = osuGame.Config.GetBindable<bool>(OsuConfig.HiddenShowFirstApproach);
scaleManiaScroll.Bindable = osuGame.Config.GetBindable<bool>(OsuConfig.ManiaSpeedBPMScale);
rememberManiaScroll.Bindable = osuGame.Config.GetBindable<bool>(OsuConfig.UsePerBeatmapManiaSpeed);
}
2016-11-03 12:26:49 +08:00
}
}
}