/** * Pass the Paper-Data to the InfoPanel and ImageHolder. * Hide the NewOrigin Button if there is no newOrigin-Data. */ private void Start() { InfoPanel.GetComponent <IInfoPanel>().Paper = Paper; // If the sciGraph file does not exist, or is even null, hide the button. if (string.IsNullOrEmpty(Paper.SciGraph)) { transform.Find("Menu/SciGraph").gameObject.SetActive(false); } else { ImageHolder.GetComponent <IImageHolder>().SciGraph = Paper.SciGraph; } // CHANGED!!! // NEWORIGIN WAS REMOVED BECAUSE OF NEW XML SCHEME. transform.Find("Menu/NewOrigin").gameObject.SetActive(false); InfoPanel.SetActive(true); InfoPanel.GetComponent <IInfoPanel>().createContent(); InfoPanel.SetActive(false); ImageHolder.SetActive(true); if (Config.URLUSED) { StartCoroutine(ImageHolder.GetComponent <IImageHolder>().createContentFromURL()); } else { ImageHolder.GetComponent <IImageHolder>().createContent(); } ImageHolder.SetActive(false); }
/** * SciGraph Button Eventhandler. * Activates/Deactivates ImageHolder. */ public void ImageHolderHandler() { ImageHolder.SetActive(!ImageHolder.activeSelf); }