Exemplo n.º 1
0
 private void OnCueIconDragStart()
 {
     wantsMouseMove             = true;
     cueIconDragStartedMousePos = Event.current.mousePosition;
     if (Event.current.alt)
     {
         var beforeSelection = new List <string>(selectedCueList);
         selectedCueList.Clear();
         foreach (string uuid in beforeSelection)
         {
             Cue cue   = cueScene.cueList.Find(x => x.UUID == uuid);
             int index = cueScene.cueList.IndexOf(cue);
             Cue copy  = new Cue(cue)
             {
                 time = 0
             };
             cueScene.cueList.Insert(index + 1, copy);
             selectedCueList.Add(copy.UUID);
         }
     }
 }