Skip to content

Commit

Permalink
decrease max tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
OliBomby committed Dec 6, 2023
1 parent a8f3a05 commit 22287f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions osu.Game.Rulesets.Osu/Edit/FreehandSliderToolboxGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public FreehandSliderToolboxGroup()
public BindableFloat Tolerance { get; } = new BindableFloat(2f)
{
MinValue = 0.05f,
MaxValue = 3f,
MaxValue = 2.0f,
Precision = 0.01f
};

Expand All @@ -32,7 +32,7 @@ public FreehandSliderToolboxGroup()
};

// We map internal ranges to a more standard range of values for display to the user.
private readonly BindableInt displayTolerance = new BindableInt(66)
private readonly BindableInt displayTolerance = new BindableInt(100)
{
MinValue = 5,
MaxValue = 100
Expand Down Expand Up @@ -90,8 +90,8 @@ protected override void LoadComplete()
displayCornerThreshold.Value = internalToDisplayCornerThreshold(threshold.NewValue)
);

float displayToInternalTolerance(float v) => v / 33f;
int internalToDisplayTolerance(float v) => (int)Math.Round(v * 33f);
float displayToInternalTolerance(float v) => v / 50f;
int internalToDisplayTolerance(float v) => (int)Math.Round(v * 50f);

float displayToInternalCornerThreshold(float v) => v / 100f;
int internalToDisplayCornerThreshold(float v) => (int)Math.Round(v * 100f);
Expand Down

0 comments on commit 22287f3

Please sign in to comment.