Exemple #1
0
 public static void Post(string input, bool postToLog, float postToScreenDuration) // Posts uninstantiated, so it doesn't care about debugMode.
 {
     if (postToLog)
     {
         Log.info(input);
     }
     if (postToScreenDuration > 0f && HighLogic.LoadedSceneIsFlight) // will only work in the flight scene, gives an error in other places.
     {
         ScreenMessages.PostScreenMessage(new ScreenMessage(input, postToScreenDuration, ScreenMessageStyle.UPPER_RIGHT));
     }
 }
Exemple #2
0
 public void PostMessage(object input, bool postToLog, float postToScreenDuration) // Posts uninstantiated, so it doesn't care about debugMode.
 {
     if (postToLog)
     {
         Log.info("{0} {1}", moduleName, input);
     }
     if (postToScreenDuration > 0f) // will only work in the flight scene, gives an error in other places.
     {
         outputLines.Add(new debugLine(input.ToString(), postToScreenDuration));
         //nextPostDuration = postToScreenDuration;
     }
 }