public void drawGUI() { GUI.skin = GeneralUI.UISkin; GeneralUI.Styles(); // SAS toggle button if (bArmed) { if (SurfSAS.ActivityCheck()) { GUI.backgroundColor = GeneralUI.ActiveBackground; } else { GUI.backgroundColor = GeneralUI.InActiveBackground; } if (GUI.Button(new Rect(Screen.width / 2 + 50, Screen.height - 200, 50, 30), "SSAS")) { ActivitySwitch(!ActivityCheck()); updateTarget(); if (ActivityCheck()) { setStockSAS(false); } } GUI.backgroundColor = GeneralUI.stockBackgroundGUIColor; } // Main and preset window stuff if (!AppLauncherFlight.bDisplaySAS) { return; } Draw(); }
internal static bool SASMonitor() { return(FlightData.thisVessel.ActionGroups[KSPActionGroup.SAS] || SurfSAS.ActivityCheck()); }