public void drawGUI()
{
if (!vessel.isActiveVessel || !RTGlobals.show) return;
GUI.skin = HighLogic.Skin;
RTGlobals.windowPos = GUILayout.Window(WINDOW_ID, RTGlobals.windowPos, WindowGUI, "Comms status", GUILayout.Width(300), GUILayout.Height((RTGlobals.listComsats && powered ? 600 : 50)));
if (!powered) return;
if (settings.show)
RTGlobals.SettingPos = GUILayout.Window(settings.WINDOW_ID, RTGlobals.SettingPos, settings.SettingsGUI, "Relay Settings", GUILayout.Width(350), GUILayout.Height(600));
if (RTGlobals.showFC)
{
RTGlobals.AttitudePos = GUILayout.Window(flightComputerGUI.ATTITUDE_ID, RTGlobals.AttitudePos, flightComputerGUI.AttitudeGUI, "Computer", GUILayout.Width(30), GUILayout.Height(60));
RTGlobals.ThrottlePos = GUILayout.Window(flightComputerGUI.THROTTLE_ID, RTGlobals.ThrottlePos, flightComputerGUI.ThrottleGUI, "Throttle", GUILayout.Width(30), GUILayout.Height(60));
}
if (otherGUI.Count > 0)
{
for (int i = 0; i < otherGUI.Count; i++)
{
otherGUI[i].AttitudePos = GUILayout.Window(otherGUI[i].ATTITUDE_ID, otherGUI[i].AttitudePos, otherGUI[i].gui.AttitudeGUI, "Computer: " + otherGUI[i].gui.core.vessel.vesselName, GUILayout.Width(30), GUILayout.Height(60));
otherGUI[i].ThrottlePos = GUILayout.Window(otherGUI[i].THROTTLE_ID, otherGUI[i].ThrottlePos, otherGUI[i].gui.ThrottleGUI, "Throttle: " + otherGUI[i].gui.core.vessel.vesselName, GUILayout.Width(30), GUILayout.Height(60));
}
}
}