2016-12-06 17:56:20 +08:00
|
|
|
|
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
2016-11-30 23:32:07 +08:00
|
|
|
|
using osu.Framework;
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Framework.Configuration;
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Framework.Graphics.Sprites;
|
|
|
|
|
using osu.Framework.Graphics.UserInterface;
|
|
|
|
|
using osu.Game.Configuration;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Overlays.Options.Gameplay
|
|
|
|
|
{
|
|
|
|
|
public class GeneralGameplayOptions : OptionsSubsection
|
|
|
|
|
{
|
|
|
|
|
protected override string Header => "General";
|
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load(OsuConfigManager config)
|
|
|
|
|
{
|
|
|
|
|
Children = new Drawable[]
|
|
|
|
|
{
|
2016-12-02 06:31:21 +08:00
|
|
|
|
new SliderOption<int>
|
2016-11-30 23:32:07 +08:00
|
|
|
|
{
|
2016-12-02 06:31:21 +08:00
|
|
|
|
LabelText = "Background dim",
|
2016-12-02 05:14:28 +08:00
|
|
|
|
Bindable = (BindableInt)config.GetBindable<int>(OsuConfig.DimLevel)
|
2016-11-30 23:32:07 +08:00
|
|
|
|
},
|
2016-12-02 05:36:04 +08:00
|
|
|
|
new OptionsDropdown<ProgressBarType>
|
|
|
|
|
{
|
|
|
|
|
Label = "Progress display",
|
|
|
|
|
Bindable = config.GetBindable<ProgressBarType>(OsuConfig.ProgressBarType)
|
|
|
|
|
},
|
2016-11-30 23:32:07 +08:00
|
|
|
|
new SpriteText { Text = "Score meter type: TODO dropdown" },
|
2016-12-02 06:31:21 +08:00
|
|
|
|
new SliderOption<double>
|
2016-11-30 23:32:07 +08:00
|
|
|
|
{
|
2016-12-02 06:31:21 +08:00
|
|
|
|
LabelText = "Score meter size",
|
2016-11-30 23:32:07 +08:00
|
|
|
|
Bindable = (BindableDouble)config.GetBindable<double>(OsuConfig.ScoreMeterScale)
|
|
|
|
|
},
|
|
|
|
|
new CheckBoxOption
|
|
|
|
|
{
|
|
|
|
|
LabelText = "Always show key overlay",
|
|
|
|
|
Bindable = config.GetBindable<bool>(OsuConfig.KeyOverlay)
|
|
|
|
|
},
|
|
|
|
|
new CheckBoxOption
|
|
|
|
|
{
|
|
|
|
|
LabelText = "Show approach circle on first \"Hidden\" object",
|
|
|
|
|
Bindable = config.GetBindable<bool>(OsuConfig.HiddenShowFirstApproach)
|
|
|
|
|
},
|
|
|
|
|
new CheckBoxOption
|
|
|
|
|
{
|
|
|
|
|
LabelText = "Scale osu!mania scroll speed with BPM",
|
|
|
|
|
Bindable = config.GetBindable<bool>(OsuConfig.ManiaSpeedBPMScale)
|
|
|
|
|
},
|
|
|
|
|
new CheckBoxOption
|
|
|
|
|
{
|
|
|
|
|
LabelText = "Remember osu!mania scroll speed per beatmap",
|
|
|
|
|
Bindable = config.GetBindable<bool>(OsuConfig.UsePerBeatmapManiaSpeed)
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|