mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 00:53:22 +08:00
Change order of settings to make scrolling easier
There's an issue with dropdown menus nested inside a scroll view being very frustrating to scroll to off-screen items. This works around that to some extent by giving the user more "parent-scrollable" space to mouse wheel or drag over.
This commit is contained in:
parent
0c1023da31
commit
7891ee4f32
@ -1,7 +1,6 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Extensions.IEnumerableExtensions;
|
using osu.Framework.Extensions.IEnumerableExtensions;
|
||||||
@ -22,19 +21,17 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
public override double ScoreMultiplier => 1;
|
public override double ScoreMultiplier => 1;
|
||||||
public override IconUsage? Icon { get; } = FontAwesome.Regular.Circle;
|
public override IconUsage? Icon { get; } = FontAwesome.Regular.Circle;
|
||||||
|
|
||||||
[SettingSource("Style", "Change the animation style of the approach circles.", 0)]
|
[SettingSource("Initial size", "Change the initial size of the approach circle, relative to hit circles.", 0)]
|
||||||
public Bindable<AnimationStyle> Style { get; } = new Bindable<AnimationStyle>();
|
public BindableFloat Scale { get; } = new BindableFloat(4)
|
||||||
|
|
||||||
[SettingSource("Initial size", "Change the initial size of the approach circle, relative to hit circles.", 1)]
|
|
||||||
public BindableFloat Scale { get; } = new BindableFloat
|
|
||||||
{
|
{
|
||||||
Precision = 0.1f,
|
Precision = 0.1f,
|
||||||
MinValue = 2,
|
MinValue = 2,
|
||||||
MaxValue = 10,
|
MaxValue = 10,
|
||||||
Default = 4,
|
|
||||||
Value = 4
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
[SettingSource("Style", "Change the animation style of the approach circles.", 1)]
|
||||||
|
public Bindable<AnimationStyle> Style { get; } = new Bindable<AnimationStyle>();
|
||||||
|
|
||||||
public void ApplyToDrawableHitObjects(IEnumerable<DrawableHitObject> drawables)
|
public void ApplyToDrawableHitObjects(IEnumerable<DrawableHitObject> drawables)
|
||||||
{
|
{
|
||||||
drawables.ForEach(drawable =>
|
drawables.ForEach(drawable =>
|
||||||
|
Loading…
Reference in New Issue
Block a user