Exemple #1
0
		public void OnMouseSelection(Rect selection){
			if (pipe_manager != null) {
				handleSelectCallback = setHandle;
				pipe_manager.OnMouseSelection (selection, handleSelectCallback);
				handle_visible = pipe_manager.pipe_gizmos.vertices_selected;
			}
		}
Exemple #2
0
 public void OnMouseSelection(Rect selection)
 {
     if (pipe_manager != null)
     {
         handleSelectCallback = setHandle;
         pipe_manager.OnMouseSelection(selection, handleSelectCallback);
         handle_visible = pipe_manager.pipe_gizmos.vertices_selected;
     }
 }
Exemple #3
0
    public void SelectHandle(MultiSliderHandle multiSliderHandle)
    {
        if (multiSliderHandle != ActiveHandle)
        {
            // First deselect
            ActiveHandle = null;
            HandleSelected?.Invoke(ActiveHandle);

            // Then select new handle
            ActiveHandle = multiSliderHandle;
            HandleSelected?.Invoke(ActiveHandle);
        }
        if (ActiveHandle != null)
        {
            GiveFocus();
        }
    }
Exemple #4
0
 public virtual void OnHandleSelected(object pManipulator, int handleIndex)
 {
     HandleSelected?.Invoke(pManipulator as DragArrowManipulator, handleIndex.CastObj <swDragArrowManipulatorOptions_e>());
 }