mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 22:19:30 +08:00
Adjust carousel radius slightly (flyte wanted it).
This commit is contained in:
parent
f0d30cc873
commit
2ad9377b37
@ -186,7 +186,7 @@ namespace osu.Game.Screens.Select
|
|||||||
private static float offsetX(float dist, float halfHeight)
|
private static float offsetX(float dist, float halfHeight)
|
||||||
{
|
{
|
||||||
// The radius of the circle the carousel moves on.
|
// The radius of the circle the carousel moves on.
|
||||||
const float CIRCLE_RADIUS = 4;
|
const float CIRCLE_RADIUS = 3;
|
||||||
double discriminant = Math.Max(0, CIRCLE_RADIUS * CIRCLE_RADIUS - dist * dist);
|
double discriminant = Math.Max(0, CIRCLE_RADIUS * CIRCLE_RADIUS - dist * dist);
|
||||||
float x = (CIRCLE_RADIUS - (float)Math.Sqrt(discriminant)) * halfHeight;
|
float x = (CIRCLE_RADIUS - (float)Math.Sqrt(discriminant)) * halfHeight;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user