public void toggleAutoTransmit() { autoTransmit = !autoTransmit; updateConnectedExperiments(); SEP_VesselSection section = SEP_AppLauncher.Instance.getVesselSection(vessel); if (section != null) { section.setAutoTransmit(autoTransmit); } Events["toggleAutoTransmit"].guiName = autoTransmit ? "Turn Auto Transmit Off" : "Turn Auto Transmit On"; }
public void toggleAutoTransmit() { autoTransmit = !autoTransmit; updateConnectedExperiments(); SEP_VesselSection section = SEP_AppLauncher.Instance.getVesselSection(vessel); if (section != null) { section.setAutoTransmit(autoTransmit); } Events["toggleAutoTransmit"].guiName = autoTransmit ? Localizer.Format("#LOC_SurfaceExperimentPack_ModuleSEPStation_autoTransmitOff") : Localizer.Format("#LOC_SurfaceExperimentPack_ModuleSEPStation_autoTransmitOn"); }