File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -185,9 +185,16 @@ public void HookPartMenus()
185185 vs . SignalProcessor . FlightComputer . Enqueue ( EventCommand . Event ( e ) ) ;
186186 }
187187 }
188+ else if ( e . listParent . part . Modules . OfType < IAntenna > ( ) . Any ( ) &&
189+ ! e . listParent . part . Modules . OfType < ModuleRTAntennaPassive > ( ) . Any ( ) &&
190+ RTSettings . Instance . ControlAntennaWithoutConnection )
191+ {
192+ e . Invoke ( ) ;
193+ }
188194 else
189195 {
190- ScreenMessages . PostScreenMessage ( new ScreenMessage ( "No connection to send command on." , 4.0f , ScreenMessageStyle . UPPER_LEFT ) ) ;
196+ ScreenMessages . PostScreenMessage ( new ScreenMessage ( "No connection to send command on." , 4.0f ,
197+ ScreenMessageStyle . UPPER_LEFT ) ) ;
191198 }
192199 } ) ;
193200 }
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ public class Settings
3535 [ Persistent ] public Color DishConnectionColor = XKCDColors . Amber ;
3636 [ Persistent ] public Color OmniConnectionColor = XKCDColors . BrownGrey ;
3737 [ Persistent ] public Color ActiveConnectionColor = XKCDColors . ElectricLime ;
38+ [ Persistent ] public bool ControlAntennaWithoutConnection = true ;
3839
3940 [ Persistent ( collectionIndex = "STATION" ) ]
4041 public MissionControlSatellite [ ] GroundStations = new MissionControlSatellite [ ] { new MissionControlSatellite ( ) } ;
You can’t perform that action at this time.
0 commit comments