public override void OnStart(PartModule.StartState state) { base.OnStart(state); engine = new FSengineWrapper(part); if (engine.type == FSengineWrapper.EngineType.ModuleEngine) { engine.engine.Events["Activate"].guiActiveUnfocused = true; engine.engine.Events["Activate"].unfocusedRange = 5f; engine.engine.Events["Shutdown"].guiActiveUnfocused = true; engine.engine.Events["Shutdown"].unfocusedRange = 5f; } else if (engine.type == FSengineWrapper.EngineType.ModuleEngineFX) { engine.engineFX.Events["Activate"].guiActiveUnfocused = true; engine.engineFX.Events["Activate"].unfocusedRange = 5f; engine.engineFX.Events["Shutdown"].guiActiveUnfocused = true; engine.engineFX.Events["Shutdown"].unfocusedRange = 5f; } }