// Copyright (c) 2007-2017 ppy Pty Ltd . // 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.Configuration; using osu.Game.Graphics.UserInterface; namespace osu.Game.Overlays.Options.Sections.Gameplay { public class GeneralOptions : OptionsSubsection { protected override string Header => "General"; [BackgroundDependencyLoader] private void load(OsuConfigManager config) { Children = new Drawable[] { new OptionSlider { LabelText = "Background dim", Bindable = (BindableInt)config.GetBindable(OsuConfig.DimLevel) }, new OptionEnumDropDown { LabelText = "Progress display", Bindable = config.GetBindable(OsuConfig.ProgressBarType) }, new OptionEnumDropDown { LabelText = "Score meter type", Bindable = config.GetBindable(OsuConfig.ScoreMeter) }, new OptionSlider { LabelText = "Score meter size", Bindable = (BindableDouble)config.GetBindable(OsuConfig.ScoreMeterScale) }, new OsuCheckbox { LabelText = "Always show key overlay", Bindable = config.GetBindable(OsuConfig.KeyOverlay) }, new OsuCheckbox { LabelText = "Show approach circle on first \"Hidden\" object", Bindable = config.GetBindable(OsuConfig.HiddenShowFirstApproach) }, new OsuCheckbox { LabelText = "Scale osu!mania scroll speed with BPM", Bindable = config.GetBindable(OsuConfig.ManiaSpeedBPMScale) }, new OsuCheckbox { LabelText = "Remember osu!mania scroll speed per beatmap", Bindable = config.GetBindable(OsuConfig.UsePerBeatmapManiaSpeed) }, }; } } }