DrawWindow() 공개 메소드

public DrawWindow ( ) : void
리턴 void
예제 #1
0
 // 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( );
             }
         }
     }
 }
예제 #2
0
 // 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( );
             }
         }
     }
 }