Ejemplo n.º 1
0
 void Track_NoteView_NoteActionBegin(NoteView.NoteDragingType eventType, bool Callback = false)
 {
     if (eventType == NoteView.NoteDragingType.None)
     {
         return;
     }
     if (NoteActionBegin != null)
     {
         NoteActionBegin(eventType);
     }
 }
Ejemplo n.º 2
0
 void NV_NoteActionBegin(NoteView.NoteDragingType eventType, bool Callback = false)
 {
     if (eventType == NoteView.NoteDragingType.AreaSelect)
     {
         return;
     }
     if (eventType == NoteView.NoteDragingType.None)
     {
         return;
     }
     UAU.RegisterPoint(OAC.AllocedSource);
 }
Ejemplo n.º 3
0
 void NV_NoteActionEnd(NoteView.NoteDragingType eventType, bool Callback = false)
 {
     InitEventAction();
     if (eventType == NoteView.NoteDragingType.NoteMove)
     {
         if (Callback)
         {
             UAU.RemoveUndoPoint();
         }
         else
         {
             AddUndo(eventType.ToString());
         }
     }
 }
Ejemplo n.º 4
0
 void Controller_NoteActionEnd(NoteView.NoteDragingType eventType)
 {
     if (eventType == NoteView.NoteDragingType.LyricEdit)
     {
         this.AttributeWindow.GuiRefresh();
     }
     if (eventType == DirectUI.Utils.PianoUtils.NoteView.NoteDragingType.NoteMove ||
         eventType == DirectUI.Utils.PianoUtils.NoteView.NoteDragingType.NoteAdd ||
         eventType == DirectUI.Utils.PianoUtils.NoteView.NoteDragingType.NoteDelete ||
         eventType == DirectUI.Utils.PianoUtils.NoteView.NoteDragingType.NoteLength)
     {
         int MaxL = (int)(OAC.AllocedSource.TickLength);
         if (ctl_Scroll_LeftPos.Value > MaxL)
         {
             ctl_Scroll_LeftPos.Value = MaxL;
             this.pianoRollWindow1.setPianoStartTick(ctl_Scroll_LeftPos.Value);
             this.paramCurveWindow1.setPianoStartTick(ctl_Scroll_LeftPos.Value);
         }
         ctl_Scroll_LeftPos.Maximum = MaxL;
     }
 }
Ejemplo n.º 5
0
 void Track_NoteView_NoteActionEnd(NoteView.NoteDragingType eventType, bool Callback = false)
 {
     if (eventType == NoteView.NoteDragingType.None)
     {
         return;
     }
     if (eventType == NoteView.NoteDragingType.NoteMove)
     {
         if (!Callback)
         {
             if (NoteActionEnd != null)
             {
                 NoteActionEnd(eventType);
             }
         }
     }
     else
     {
         if (NoteActionEnd != null)
         {
             NoteActionEnd(eventType);
         }
     }
 }