2017-05-30 08:02:04 +00:00
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
using osu.Game.Graphics.UserInterface;
|
|
|
|
using System;
|
|
|
|
using osu.Game.Graphics;
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Game.Overlays.Settings;
|
|
|
|
|
|
|
|
namespace osu.Game.Screens.Play.ReplaySettings
|
|
|
|
{
|
2017-06-05 07:47:42 +00:00
|
|
|
public class ReplaySliderBar<T> : SettingsSlider<T>
|
2017-05-30 08:02:04 +00:00
|
|
|
where T : struct, IEquatable<T>
|
|
|
|
{
|
2017-07-13 06:02:45 +00:00
|
|
|
protected override Drawable CreateControl() => new Sliderbar
|
2017-05-30 08:02:04 +00:00
|
|
|
{
|
|
|
|
Margin = new MarginPadding { Top = 5, Bottom = 5 },
|
|
|
|
RelativeSizeAxes = Axes.X
|
|
|
|
};
|
|
|
|
|
|
|
|
private class Sliderbar : OsuSliderBar<T>
|
|
|
|
{
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load(OsuColour colours)
|
|
|
|
{
|
|
|
|
AccentColour = colours.Yellow;
|
|
|
|
Nub.AccentColour = colours.Yellow;
|
|
|
|
Nub.GlowingAccentColour = colours.YellowLighter;
|
|
|
|
Nub.GlowColour = colours.YellowDarker;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|