File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -185,9 +185,16 @@ public void HookPartMenus()
185
185
vs . SignalProcessor . FlightComputer . Enqueue ( EventCommand . Event ( e ) ) ;
186
186
}
187
187
}
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
+ }
188
194
else
189
195
{
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 ) ) ;
191
198
}
192
199
} ) ;
193
200
}
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ public class Settings
35
35
[ Persistent ] public Color DishConnectionColor = XKCDColors . Amber ;
36
36
[ Persistent ] public Color OmniConnectionColor = XKCDColors . BrownGrey ;
37
37
[ Persistent ] public Color ActiveConnectionColor = XKCDColors . ElectricLime ;
38
+ [ Persistent ] public bool ControlAntennaWithoutConnection = true ;
38
39
39
40
[ Persistent ( collectionIndex = "STATION" ) ]
40
41
public MissionControlSatellite [ ] GroundStations = new MissionControlSatellite [ ] { new MissionControlSatellite ( ) } ;
You can’t perform that action at this time.
0 commit comments