Example #1
0
 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);
 }
Example #2
0
    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);
    }
Example #3
0
 public void AddNewAnnotation(int page, Annotation.AnnotationBox anno)
 {
     ButtonControls.current.changeSelected(ButtonControls.READER_TOOL);
     drawers [page].AddNewAnnotation(anno);
 }