File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 11using System ;
2+ using System . Collections . Generic ;
23using System . Linq ;
34using System . Text ;
45using UnityEngine ;
@@ -44,6 +45,14 @@ private enum State
4445 NoConnection
4546 }
4647
48+ /// <summary>
49+ /// Contains the names of any events that should always be run,
50+ /// regardless of connection status or signal delay
51+ /// </summary>
52+ private static readonly HashSet < String > eventWhiteList = new HashSet < String > ( ) {
53+ "RenameVessel" , "RenameAsteroidEvent"
54+ } ;
55+
4756 private Guid mRegisteredId ;
4857
4958 public override String GetInfo ( )
@@ -149,6 +158,10 @@ public void HookPartMenus()
149158 {
150159 e . Invoke ( ) ;
151160 }
161+ else if ( eventWhiteList . Contains ( e . name ) )
162+ {
163+ e . Invoke ( ) ;
164+ }
152165 else if ( vs . FlightComputer != null && vs . FlightComputer . InputAllowed )
153166 {
154167 if ( ignore_delay )
You can’t perform that action at this time.
0 commit comments