예제 #1
0
        public override List <ISettingOption> GetOptions()
        {
            List <ISettingOption> results = new List <ISettingOption>();

            results.Add(new EnabledSetting(mGuid));
            results.Add(new WatchesSetting(mGuid));
            results.Add(new MotiveAdjustmentRatioSetting(mGuid));

            VectorBooter.Data vector = VectorBooter.GetVector(mGuid);
            if (vector != null)
            {
                foreach (string setting in vector.CustomSettings)
                {
                    results.Add(new CustomSetting(setting));
                }
            }

            return(results);
        }
예제 #2
0
        public bool OnLoadFixup()
        {
            mNonPersistableData = VectorBooter.GetVector(Guid);
            if (mNonPersistableData == null)
            {
                return(false);
            }

            if (mStrain == null)
            {
                mStrain = new Variant(mNonPersistableData, Vector.Settings.GetCurrentStrain(mNonPersistableData));
            }

            if (mStage > mNonPersistableData.NumStages)
            {
                mStage = 0;
            }

            return(true);
        }