예제 #1
0
파일: External.cs 프로젝트: PBechon/AGExt
 public static bool AGX2VslGroupState(uint FlightID, int group) //8 on test, owrks
 {
     if (HighLogic.LoadedSceneIsFlight)
     {
         if (FlightGlobals.ActiveVessel.rootPart.flightID == FlightID)
         {
             return(AGXGroupState(group));
         }
         else
         {
             AGXOtherVessel otherVsl = new AGXOtherVessel(FlightID);
             return(otherVsl.StateCheckGroup(group));
         }
     }
     else
     {
         // ScreenMessages.PostScreenMessage("AGX Action not checked, not in flight", 10F, ScreenMessageStyle.UPPER_CENTER);
         ScreenMessages.PostScreenMessage(Localizer.Format("#AGEXT_UI_SCREEN_MESSAGE_4"), 10F, ScreenMessageStyle.UPPER_CENTER);
         return(false);
     }
 }
예제 #2
0
파일: External.cs 프로젝트: phardy/AGExt
 public static bool AGX2VslGroupState(uint FlightID, int group) //8 on test, owrks
 {
     print("AGX Call: group state for " + group + " for vessel " + FlightID);
     if (HighLogic.LoadedSceneIsFlight)
     {
         if (FlightGlobals.ActiveVessel.rootPart.flightID == FlightID)
         {
             return(AGXGroupState(group));
         }
         else
         {
             AGXOtherVessel otherVsl = new AGXOtherVessel(FlightID);
             return(otherVsl.StateCheckGroup(group));
         }
     }
     else
     {
         ScreenMessages.PostScreenMessage("AGX Action not checked, not in flight", 10F, ScreenMessageStyle.UPPER_CENTER);
         return(false);
     }
 }