// Called by Unity to draw the GUI - can be called many times per frame. public void OnGUI( ) { if (UiActive( )) { if (_checklistWindow.IsVisible) { _checklistWindow.Draw( ); _settingsWindow.DrawWindow( ); _helpWindow.DrawWindow( ); } if (_statusWindow.IsVisible( )) { if (HighLogic.LoadedScene == GameScenes.FLIGHT && FlightGlobals.ActiveVessel != null) { _statusWindow.DrawWindow( ); } } if (_shipStateWindow.IsVisible( ) && Config.SelectedObjectWindow) { if (HighLogic.LoadedScene == GameScenes.TRACKSTATION) { _shipStateWindow.DrawWindow( ); } } } }
// Called by Unity to draw the GUI - can be called many times per frame. public void OnGUI( ) { if (UiActive( )) { if (_checklistWindow.IsVisible) { _checklistWindow.Draw( ); _settingsWindow.DrawWindow( ); _helpWindow.DrawWindow( ); } if (_statusWindow.IsVisible( )) { if (HighLogic.LoadedScene == GameScenes.FLIGHT && FlightGlobals.ActiveVessel != null) { _statusWindow.DrawWindow( ); } } } }