Beispiel #1
0
 internal void SetDraggyCoordinates(
     EditorDraggyMode?mode = null,
     long?frameLength      = null,
     string text           = null,
     int?mouseX            = null,
     int?mouseXOffset      = 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;
     }
     Draggy.SetCoordinates(
         mode: mode,
         frameLength: frameLength,
         text: text,
         mouseX: mouseX,
         mouseXOffset: mouseXOffset);
 }
Beispiel #2
0
 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);
 }