コード例 #1
0
 private void OnDraw()
 {
     if (toolbarButton != null)
     {
         toolbarButton.UpdateIcon(drawWindow);
     }
     if (drawWindow)
     {
         windowPosition = GUI.Window(1234, windowPosition, OnWindow, "Science Monitor", windowStyle);
         KSPScienceSettings.setRectSetting("MonitorRect", windowPosition);
     }
 }
コード例 #2
0
    private void OnDraw()
    {
        if (toolbarButton != null)
        {
            toolbarButton.UpdateIcon(drawWindow);
        }

        if (!lastdrawWindow && drawWindow)
        {
            GetSciData();
        }

        if (drawWindow)
        {
            windowPosition = GUI.Window(2345, windowPosition, OnWindow, "Science Library " + version, windowStyle);
            KSPScienceSettings.setRectSetting("LibraryRect", windowPosition);
        }


        lastdrawWindow = drawWindow;
    }