private Annotation.AnnotationBox[] GetAnnotationsBoxArray() { Annotation.AnnotationBox[] output = new Annotation.AnnotationBox[annotations.Count]; for (int i = 0; i < output.Length; i++) { output [i] = (Annotation.AnnotationBox)annotations [i]; } return(output); }
public void AddNewAnnotation(Annotation.AnnotationBox anno) { int i; Annotation.AnnotationBox[] newAnnos = new Annotation.AnnotationBox[boxes.Length + 1]; for (i = 0; i < boxes.Length; i++) { newAnnos [i] = boxes [i]; } newAnnos [i] = anno; UpdatesAnnotations(newAnnos); annotations [i].gameObject.SetActive(true); annotations [i].SetParent(canvas, false); }
public void AddNewAnnotation(int page, Annotation.AnnotationBox anno) { ButtonControls.current.changeSelected(ButtonControls.READER_TOOL); drawers [page].AddNewAnnotation(anno); }