Exemplo n.º 1
0
 public void CleanupRenderer()
 {
     if (orbitRenderer != null)
     {
         orbitRenderer.Cleanup();
         orbitRenderer = null;
     }
 }
Exemplo n.º 2
0
        private void setupOrbit(bool ksc)
        {
            if (ksc)
            {
                KSCOrbit = new Orbit(inc, ecc, sma, lan, aop, mae, epo, body);
            }
            else
            {
                orbitRenderer = ContractOrbitRenderer.Setup(Root, new Orbit(inc, ecc, sma, lan, aop, mae, epo, body));
            }

            orbitLoaded = true;
        }
            public void SetupRenderer()
            {
                if (orbitRenderer != null)
                {
                    return;
                }

                if (HighLogic.LoadedScene == GameScenes.TRACKSTATION || HighLogic.LoadedScene == GameScenes.FLIGHT)
                {
                    if (contract.ContractState == Contract.State.Active && (ContractConfiguratorSettings.Instance.DisplayActiveOrbits || HighLogic.LoadedScene != GameScenes.TRACKSTATION) ||
                        contract.ContractState == Contract.State.Offered && ContractConfiguratorSettings.Instance.DisplayOfferedOrbits && HighLogic.LoadedScene == GameScenes.TRACKSTATION)
                    {
                        orbitRenderer = ContractOrbitRenderer.Setup(contract, orbit);
                    }
                }
            }
Exemplo n.º 4
0
            public void SetupRenderer()
            {
                if (orbitRenderer != null)
                {
                    return;
                }

                if (HighLogic.LoadedScene == GameScenes.TRACKSTATION || HighLogic.LoadedScene == GameScenes.FLIGHT)
                {
                    ContractConfiguratorParameters parms = HighLogic.CurrentGame.Parameters.CustomParams <ContractConfiguratorParameters>();

                    if (contract.ContractState == Contract.State.Active && (parms.DisplayActiveOrbits || HighLogic.LoadedScene != GameScenes.TRACKSTATION) ||
                        contract.ContractState == Contract.State.Offered && parms.DisplayOfferedOrbits && HighLogic.LoadedScene == GameScenes.TRACKSTATION)
                    {
                        orbitRenderer = ContractOrbitRenderer.Setup(contract, orbit);
                    }
                }
            }
            public void SetupRenderer()
            {
                if (orbitRenderer != null)
                {
                    return;
                }

                if (HighLogic.LoadedScene == GameScenes.TRACKSTATION || HighLogic.LoadedScene == GameScenes.FLIGHT)
                {
                    ContractConfiguratorParameters parms = HighLogic.CurrentGame.Parameters.CustomParams<ContractConfiguratorParameters>();

                    if (contract.ContractState == Contract.State.Active && (parms.DisplayActiveOrbits || HighLogic.LoadedScene != GameScenes.TRACKSTATION) ||
                        contract.ContractState == Contract.State.Offered && parms.DisplayOfferedOrbits && HighLogic.LoadedScene == GameScenes.TRACKSTATION)
                    {
                        orbitRenderer = ContractOrbitRenderer.Setup(contract, orbit);
                    }
                }
            }
 public void CleanupRenderer()
 {
     if (orbitRenderer != null)
     {
         orbitRenderer.Cleanup();
         orbitRenderer = null;
     }
 }