mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09:00
Fix formatting ;_;
This commit is contained in:
parent
387705b2b6
commit
8438ea1267
@ -21,7 +21,6 @@ namespace osu.Game.Graphics.Cursor
|
|||||||
protected override Drawable CreateCursor() => new Cursor();
|
protected override Drawable CreateCursor() => new Cursor();
|
||||||
|
|
||||||
private Bindable<bool> cursorRotate;
|
private Bindable<bool> cursorRotate;
|
||||||
|
|
||||||
private bool dragging;
|
private bool dragging;
|
||||||
|
|
||||||
private bool startRotation;
|
private bool startRotation;
|
||||||
@ -43,10 +42,8 @@ namespace osu.Game.Graphics.Cursor
|
|||||||
|
|
||||||
// Always rotate in the direction of least distance
|
// Always rotate in the direction of least distance
|
||||||
float diff = (degrees - ActiveCursor.Rotation) % 360;
|
float diff = (degrees - ActiveCursor.Rotation) % 360;
|
||||||
if (diff < -180)
|
if (diff < -180) diff += 360;
|
||||||
diff += 360;
|
if (diff > 180) diff -= 360;
|
||||||
if (diff > 180)
|
|
||||||
diff -= 360;
|
|
||||||
degrees = ActiveCursor.Rotation + diff;
|
degrees = ActiveCursor.Rotation + diff;
|
||||||
|
|
||||||
ActiveCursor.RotateTo(degrees, 600, Easing.OutQuint);
|
ActiveCursor.RotateTo(degrees, 600, Easing.OutQuint);
|
||||||
@ -116,7 +113,6 @@ namespace osu.Game.Graphics.Cursor
|
|||||||
{
|
{
|
||||||
private Container cursorContainer;
|
private Container cursorContainer;
|
||||||
private Bindable<double> cursorScale;
|
private Bindable<double> cursorScale;
|
||||||
|
|
||||||
private const float base_scale = 0.15f;
|
private const float base_scale = 0.15f;
|
||||||
|
|
||||||
public Sprite AdditiveLayer;
|
public Sprite AdditiveLayer;
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Game.Configuration;
|
using osu.Game.Configuration;
|
||||||
|
|
||||||
|
|
||||||
namespace osu.Game.Overlays.Settings.Sections.Graphics
|
namespace osu.Game.Overlays.Settings.Sections.Graphics
|
||||||
{
|
{
|
||||||
public class DetailSettings : SettingsSubsection
|
public class DetailSettings : SettingsSubsection
|
||||||
|
Loading…
x
Reference in New Issue
Block a user