mirror of https://github.com/ppy/osu
Apply minor fixes
This commit is contained in:
parent
9a5e464c99
commit
63f0419d6a
|
@ -51,7 +51,7 @@ private void load(OsuColour colours)
|
|||
{
|
||||
new Drawable[]
|
||||
{
|
||||
new TickSliderBar(beatDivisor, 1, 2, 3, 4, 6, 8, 12, 16)
|
||||
new TickSliderBar(beatDivisor, BindableBeatDivisor.VALID_DIVISORS)
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
}
|
||||
|
@ -216,11 +216,10 @@ protected override void UpdateValue(float value)
|
|||
{
|
||||
}
|
||||
|
||||
public override bool HandleKeyboardInput => IsHovered && !CurrentNumber.Disabled;
|
||||
|
||||
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
|
||||
{
|
||||
if (!IsHovered || CurrentNumber.Disabled)
|
||||
return false;
|
||||
|
||||
switch (args.Key)
|
||||
{
|
||||
case Key.Right:
|
||||
|
|
Loading…
Reference in New Issue