2017-02-07 12:59:30 +08:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
2017-02-03 18:13:10 +08:00
|
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Framework.Configuration;
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Game.Configuration;
|
|
|
|
|
using osu.Game.Graphics.UserInterface;
|
|
|
|
|
|
2017-01-31 17:37:11 +08:00
|
|
|
|
namespace osu.Game.Overlays.Options.Sections.Gameplay
|
2016-11-30 23:32:07 +08:00
|
|
|
|
{
|
2017-01-31 18:23:52 +08:00
|
|
|
|
public class GeneralOptions : OptionsSubsection
|
2016-11-30 23:32:07 +08:00
|
|
|
|
{
|
|
|
|
|
protected override string Header => "General";
|
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load(OsuConfigManager config)
|
|
|
|
|
{
|
|
|
|
|
Children = new Drawable[]
|
|
|
|
|
{
|
2017-01-31 17:37:11 +08:00
|
|
|
|
new OptionSlider<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
|
|
|
|
},
|
2017-03-22 22:32:32 +08:00
|
|
|
|
new OptionEnumDropdown<ProgressBarType>
|
2016-12-02 05:36:04 +08:00
|
|
|
|
{
|
2016-12-02 06:33:30 +08:00
|
|
|
|
LabelText = "Progress display",
|
2016-12-02 05:36:04 +08:00
|
|
|
|
Bindable = config.GetBindable<ProgressBarType>(OsuConfig.ProgressBarType)
|
|
|
|
|
},
|
2017-03-22 22:32:32 +08:00
|
|
|
|
new OptionEnumDropdown<ScoreMeterType>
|
2016-12-02 06:28:20 +08:00
|
|
|
|
{
|
2016-12-02 06:33:30 +08:00
|
|
|
|
LabelText = "Score meter type",
|
2016-12-02 06:28:20 +08:00
|
|
|
|
Bindable = config.GetBindable<ScoreMeterType>(OsuConfig.ScoreMeter)
|
|
|
|
|
},
|
2017-01-31 17:37:11 +08:00
|
|
|
|
new OptionSlider<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)
|
|
|
|
|
},
|
2017-01-31 17:37:11 +08:00
|
|
|
|
new OsuCheckbox
|
2017-03-31 21:43:31 +08:00
|
|
|
|
{
|
|
|
|
|
LabelText = "Show score overlay",
|
|
|
|
|
Bindable = config.GetBindable<bool>(OsuConfig.ShowInterface)
|
|
|
|
|
},
|
|
|
|
|
new OsuCheckbox
|
2016-11-30 23:32:07 +08:00
|
|
|
|
{
|
|
|
|
|
LabelText = "Always show key overlay",
|
|
|
|
|
Bindable = config.GetBindable<bool>(OsuConfig.KeyOverlay)
|
|
|
|
|
},
|
2017-01-31 17:37:11 +08:00
|
|
|
|
new OsuCheckbox
|
2016-11-30 23:32:07 +08:00
|
|
|
|
{
|
|
|
|
|
LabelText = "Show approach circle on first \"Hidden\" object",
|
|
|
|
|
Bindable = config.GetBindable<bool>(OsuConfig.HiddenShowFirstApproach)
|
|
|
|
|
},
|
2017-01-31 17:37:11 +08:00
|
|
|
|
new OsuCheckbox
|
2016-11-30 23:32:07 +08:00
|
|
|
|
{
|
|
|
|
|
LabelText = "Scale osu!mania scroll speed with BPM",
|
|
|
|
|
Bindable = config.GetBindable<bool>(OsuConfig.ManiaSpeedBPMScale)
|
|
|
|
|
},
|
2017-01-31 17:37:11 +08:00
|
|
|
|
new OsuCheckbox
|
2016-11-30 23:32:07 +08:00
|
|
|
|
{
|
|
|
|
|
LabelText = "Remember osu!mania scroll speed per beatmap",
|
|
|
|
|
Bindable = config.GetBindable<bool>(OsuConfig.UsePerBeatmapManiaSpeed)
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-12-02 06:28:20 +08:00
|
|
|
|
}
|