public void OnMouseSelection(Rect selection){ if (pipe_manager != null) { handleSelectCallback = setHandle; pipe_manager.OnMouseSelection (selection, handleSelectCallback); handle_visible = pipe_manager.pipe_gizmos.vertices_selected; } }
public void OnMouseSelection(Rect selection) { if (pipe_manager != null) { handleSelectCallback = setHandle; pipe_manager.OnMouseSelection(selection, handleSelectCallback); handle_visible = pipe_manager.pipe_gizmos.vertices_selected; } }
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(); } }
public virtual void OnHandleSelected(object pManipulator, int handleIndex) { HandleSelected?.Invoke(pManipulator as DragArrowManipulator, handleIndex.CastObj <swDragArrowManipulatorOptions_e>()); }