MouseDance MouseDance
MouseDance MouseDance
MouseDance User Docs powered by DocFx, DiscordFx

Search Results for

    Interface ISliderBall

    Properties of a Slider Ball that is exposed to a Slider.

    Namespace: MouseDance.Runtime
    Assembly: MouseDance.Runtime.dll
    Syntax
    public interface ISliderBall

    Properties

    DistanceToMouse

    Mouse cursor's distance to the Ball.

    Declaration
    float DistanceToMouse { get; }
    Property Value
    Type Description
    Single

    IsMoving

    If the Ball has already started moving or not.

    Declaration
    bool IsMoving { get; }
    Property Value
    Type Description
    Boolean

    Slider

    The Slider that this Ball is rolling through.

    Declaration
    ISlider Slider { get; }
    Property Value
    Type Description
    ISlider

    Methods

    Move(ISlider, Int32, Boolean, Single, Double, Int32, Vector2, List<Vector3>, Color, Boolean)

    Start moving the Slider Ball through the specified Slider.

    Declaration
    void Move(ISlider slider, int comboCounter, bool showNumber, float radius, double ballSpeed, int numberOfTimes, Vector2 initialPos, List<Vector3> path, Color colour, bool smoothenOrientation)
    Parameters
    Type Name Description
    ISlider slider

    The Slider that the Ball will now move through.

    Int32 comboCounter

    The number displayed by the Slider. Use this if your Slider Ball also shows that number.

    Boolean showNumber

    Whether the Slider Ball should also show the number.

    Single radius

    How big the ball should be.

    Double ballSpeed

    How fast the ball should be.

    Int32 numberOfTimes

    How many times the Ball should move through the Slider.

    Vector2 initialPos

    Starting position of the Slider.

    List<Vector3> path

    Local-space positions of each point in the Slider's line.

    Color colour

    Colour of that the Ball should be in.

    Boolean smoothenOrientation

    Whether the change of the Ball's facing direction should be smoothened out.

    Resize(Single)

    Resize the ball, meant to be used when the ball is currently shown.

    Declaration
    void Resize(float radius)
    Parameters
    Type Name Description
    Single radius

    How big the ball should be.