コード例 #1
0
 public void chooseEquipment()
 {
     if (expData.getId() == "")
     {
         availableExperiments = ExperimentFactory.getAvailableExperiments(type);
         showAddWindow();
     }
     else
     {
         removeExperimentData();
         Events["chooseEquipment"].guiName = Localizer.GetStringByTag("#ne_Add_Experiment");
     }
 }
コード例 #2
0
 public void chooseEquipment()
 {
     if (expData.getId() == "")
     {
         availableExperiments = ExperimentFactory.getAvailableExperiments(type);
         windowID             = WindowCounter.getNextWindowID();
         showGui = 1;
     }
     else
     {
         removeExperimentData();
         Events["chooseEquipment"].guiName = "Add Experiment";
     }
 }
コード例 #3
0
        private void setExperiment(ExperimentData experimentData)
        {
            NE_Helper.log("MOVExp.setExp() id: " + experimentData.getId());
            expData = experimentData;
            //contains = expData.getAbbreviation();
            expData.setStorage(this);

            experimentID = expData.getId();
            experiment   = ResearchAndDevelopment.GetExperiment(experimentID);

            experimentActionName = "Results";
            resetActionName      = "Throw Away Results";
            reviewActionName     = "Review " + expData.getAbbreviation() + " Results";

            useStaging            = false;
            useActionGroups       = true;
            hideUIwhenUnavailable = true;
            resettable            = false;
            resettableOnEVA       = false;

            dataIsCollectable = false;
            collectActionName = "Collect Results";
            interactionRange  = 1.2f;
            xmitDataScalar    = 0.05f;
            if (chanceTexture)
            {
                setTexture(expData);
            }
        }
コード例 #4
0
        internal void installExperiment(ExperimentData exp)
        {
            this.exp = exp;
            exp.installed(this);
            GameObject ego = lab.getExperimentGO(exp.getId());

            if (ego != null)
            {
                ego.SetActive(true);
            }
        }
コード例 #5
0
        private void loadExperiment(ExperimentData experimentData)
        {
            this.exp = experimentData;
            exp.load(this);
            GameObject ego = lab.getExperimentGO(exp.getId());

            if (ego != null)
            {
                ego.SetActive(true);
            }
        }
コード例 #6
0
        internal void moveExperiment(Vessel vessel)
        {
            if (exp != null)
            {
                exp.move(vessel);
            }
            GameObject ego = lab.getExperimentGO(exp.getId());

            if (ego != null)
            {
                ego.SetActive(false);
            }
        }
コード例 #7
0
        /// <summary>
        /// Sets or clears the stored experiment
        /// </summary>
        /// <param name="experimentData">Experiment data.</param>
        private void setExperiment(ExperimentData experimentData)
        {
            NE_Helper.log("MOVExp.setExp() id: " + experimentData.getId());
            expData = experimentData;
            //contains = expData.getAbbreviation();
            expData.setStorage(this);

            experimentID = expData.getId();
            if (expData.getId() == "")
            {
                experiment = null;
            }
            else
            {
                experiment = ResearchAndDevelopment.GetExperiment(experimentID);
            }

            experimentActionName = Localizer.GetStringByTag("#ne_Results");
            resetActionName      = Localizer.GetStringByTag("#ne_Discard_Results");
            reviewActionName     = Localizer.Format("#ne_Review_1_Results", expData.getAbbreviation());

            useStaging            = false;
            useActionGroups       = true;
            hideUIwhenUnavailable = true;
            resettable            = false;
            resettableOnEVA       = false;

            dataIsCollectable = false;
            collectActionName = Localizer.GetStringByTag("#ne_Collect_Results");
            interactionRange  = 1.2f;
            xmitDataScalar    = 0.05f;
            if (chanceTexture)
            {
                setTexture(expData);
            }
            RefreshMassAndCost();
        }