void OnDestroy() { if (!CompatibilityChecker.IsAllCompatible()) { return; } //SaveConfigs(); GameEvents.onGameSceneSwitchRequested.Remove(OnSceneChange); if (FARDebugButtonBlizzy != null) { FARDebugButtonBlizzy.Destroy(); } }
void Start() { if (!CompatibilityChecker.IsAllCompatible()) { this.enabled = false; return; } FerramAerospaceResearch.FARAeroComponents.FARAeroSection.GenerateCrossFlowDragCurve(); FARAeroStress.LoadStressTemplates(); FARAeroUtil.LoadAeroDataFromConfig(); //LoadConfigs(); GameObject.DontDestroyOnLoad(this); debugMenu = false; }
private void Start() { if (!CompatibilityChecker.IsAllCompatible()) { enabled = false; return; } FARAeroSection.GenerateCrossFlowDragCurve(); FARAeroStress.LoadStressTemplates(); FARAeroUtil.LoadAeroDataFromConfig(); //LoadConfigs(); DontDestroyOnLoad(this); debugMenu = false; }
private void Start() { if (!CompatibilityChecker.IsAllCompatible()) { enabled = false; return; } Instance = this; FARLogger.Info("Vehicle Voxel Setup started"); FARAeroSection.GenerateCrossFlowDragCurve(); VehicleVoxel.VoxelSetup(); PhysicsGlobals.DragCubeMultiplier = 0; FARLogger.Info("Vehicle Voxel Setup complete"); newGame = false; }
void OnDestroy() { if (!CompatibilityChecker.IsAllCompatible()) { return; } //SaveConfigs(); GameEvents.onGUIApplicationLauncherReady.Remove(OnGUIAppLauncherReady); if (FARDebugButtonStock != null) { ApplicationLauncher.Instance.RemoveModApplication(FARDebugButtonStock); } if (FARDebugButtonBlizzy != null) { FARDebugButtonBlizzy.Destroy(); } }
void Start() { if (!CompatibilityChecker.IsAllCompatible()) { this.enabled = false; return; } if (newGame) { PopupDialog.SpawnPopupDialog("Ferram Aerospace Research", "Welcome to KSP with FAR!\n\r\n\rThings will be much harder from here on out; the FAR button in the top-right corner will bring you to difficulty settings if you ever decide to change them. Have fun!", "OK", false, HighLogic.Skin); } Debug.Log("FAR Vehicle Voxel Setup started"); VehicleVoxel.VoxelSetup(); Debug.Log("FAR Vehicle Voxel Setup complete"); //GameEvents.onGameStateSave.Add(OnSave); newGame = false; }
void Start() { if (!CompatibilityChecker.IsAllCompatible()) { this.enabled = false; return; } instance = this; //if (newGame) // PopupDialog.SpawnPopupDialog("Ferram Aerospace Research", "Welcome to KSP with FAR!\n\r\n\rThings will be much harder from here on out; the FAR button in the top-right corner will bring you to difficulty settings if you ever decide to change them. Have fun!", "OK", false, HighLogic.Skin); FARLogger.Info("Vehicle Voxel Setup started"); FerramAerospaceResearch.FARAeroComponents.FARAeroSection.GenerateCrossFlowDragCurve(); VehicleVoxel.VoxelSetup(); PhysicsGlobals.DragCubeMultiplier = 0; FARLogger.Info("Vehicle Voxel Setup complete"); //GameEvents.onGameStateSave.Add(OnSave); newGame = false; }