Vidka.Core.UiObj.VidkaUiStateObjects.SetDraggyCoordinates C# (CSharp) Method

SetDraggyCoordinates() public method

public SetDraggyCoordinates ( EditorDraggyMode mode = null, long frameLength = null, string text = null, int mouseX = null, int mouseXOffset = null, bool hasAudio = null, long frameAbsLeft = null ) : void
mode EditorDraggyMode
frameLength long
text string
mouseX int
mouseXOffset int
hasAudio bool
frameAbsLeft long
return void
        public void SetDraggyCoordinates(
			EditorDraggyMode? mode = null,
			long? frameLength = null,
			string text = null,
			int? mouseX = null,
			int? mouseXOffset = null,
			bool? hasAudio = null,
            long? frameAbsLeft = null)
        {
            if (mode.HasValue && mode.Value != Draggy.Mode)
                stateChanged = true;
            if (frameLength.HasValue && frameLength.Value != Draggy.FrameLength)
                stateChanged = true;
            if (text != Draggy.Text)
                stateChanged = true;
            if (mouseX.HasValue && mouseX.Value != Draggy.MouseX)
                stateChanged = true;
            if (mouseXOffset.HasValue && mouseXOffset.Value != Draggy.MouseXOffset)
                stateChanged = true;
            if (hasAudio.HasValue && hasAudio.Value != Draggy.HasAudio)
                stateChanged = true;
            if (frameAbsLeft.HasValue && frameAbsLeft.Value != Draggy.FrameAbsLeft)
                stateChanged = true;
            Draggy.SetCoordinates(
                mode: mode,
                frameLength: frameLength,
                text: text,
                mouseX: mouseX,
                mouseXOffset: mouseXOffset,
                hasAudio: hasAudio,
                frameAbsLeft: frameAbsLeft);
        }