public void setWindow(ISEP_Window window)
        {
            if (window == null)
            {
                return;
            }

            windowInterface = window;

            if (windowInterface.ShowAllVessels)
            {
                CreateVesselSections(windowInterface.GetVessels);

                if (VesselExpansion != null)
                {
                    VesselExpansion.gameObject.SetActive(false);
                }
            }
            else
            {
                currentBody = windowInterface.CurrentBody;

                CreateVesselSections(windowInterface.GetBodyVessels(windowInterface.CurrentBody));

                CreateBodySections(windowInterface.GetBodies);
            }

            transform.localScale *= window.Scale;
        }
        public void setWindow(ISEP_Window window)
        {
            if (window == null)
            {
                return;
            }

            windowInterface = window;

            CreateVesselSections(windowInterface.GetVessels());
        }
        public void setWindow(ISEP_Window window)
        {
            if (window == null)
            {
                return;
            }

            windowInterface = window;

            CreateVesselSection(windowInterface.CurrentVessel);

            transform.localScale *= window.Scale;
        }
Esempio n. 4
0
        public void setWindow(ISEP_Window window)
        {
            if (window == null)
            {
                return;
            }

            windowInterface = window;

            CreateVesselSection(windowInterface.CurrentVessel);

            transform.localScale *= window.Scale;

            if (VersionText != null)
            {
                VersionText.OnTextUpdate.Invoke("v" + window.Version);
            }
        }