2016-12-06 09:56:20 +00:00
|
|
|
|
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
2017-01-31 09:37:11 +00:00
|
|
|
|
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.Audio
|
2016-11-03 04:26:49 +00:00
|
|
|
|
{
|
2017-01-31 10:23:52 +00:00
|
|
|
|
public class OffsetOptions : OptionsSubsection
|
2016-11-03 04:26:49 +00:00
|
|
|
|
{
|
2016-11-04 03:01:11 +00:00
|
|
|
|
protected override string Header => "Offset Adjustment";
|
2016-11-30 15:32:07 +00:00
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load(OsuConfigManager config)
|
|
|
|
|
{
|
|
|
|
|
Children = new Drawable[]
|
|
|
|
|
{
|
2017-01-31 09:37:11 +00:00
|
|
|
|
new OptionSlider<int>
|
2016-11-30 15:32:07 +00:00
|
|
|
|
{
|
2016-12-01 22:31:21 +00:00
|
|
|
|
LabelText = "Universal Offset",
|
2016-12-01 21:14:28 +00:00
|
|
|
|
Bindable = (BindableInt)config.GetBindable<int>(OsuConfig.Offset)
|
2016-11-30 15:32:07 +00:00
|
|
|
|
},
|
|
|
|
|
new OsuButton
|
|
|
|
|
{
|
|
|
|
|
RelativeSizeAxes = Axes.X,
|
|
|
|
|
Text = "Offset wizard"
|
|
|
|
|
}
|
|
|
|
|
};
|
2016-11-03 04:26:49 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2016-11-30 15:32:07 +00:00
|
|
|
|
}
|