コード例 #1
0
 private void closeGui()
 {
     this.enabled = false;
     resetHighlight();
     if (smInfo != null)
     {
         ScreenMessages.RemoveMessage(smInfo);
         smInfo = null;
     }
     if (smError != null)
     {
         ScreenMessages.RemoveMessage(smError);
         smError = null;
     }
     destinationParts.Clear();
     // Delay unlocking UI to end of frame to prevent KSP from handling ESC key
     NE_Helper.RunOnEndOfFrame(this, NE_Helper.UnlockUI);
 }