Exemplo n.º 1
0
 public void openLibraryWindow(KPU.UI.CodeWindow cw)
 {
     if (libraryWindow != null)
         libraryWindow.Hide();
     libraryWindow = new KPU.UI.LibraryWindow(cw);
     libraryWindow.Show();
 }
Exemplo n.º 2
0
 public ProcessorRenameWindow(KPU.Processor.Processor processor)
     : base(Guid.NewGuid(), String.Format("Rename Processor"), new Rect(Screen.width / 2 - 100, Screen.height / 2 - 30, 200, 60), WindowAlign.Floating)
 {
     mProcessor = processor;
     mNewName = processor.name;
     mBtnStyle = new GUIStyle(HighLogic.Skin.button)
     {
         fontStyle = FontStyle.Bold,
         fontSize = 12,
     };
 }
Exemplo n.º 3
0
 public CodeWindow(KPU.Processor.Processor processor)
     : base(Guid.NewGuid(), "KPU Code", new Rect(100, 100, 515, 320), WindowAlign.Floating)
 {
     mProcessor = processor;
     mHeadingStyle = new GUIStyle(HighLogic.Skin.label)
     {
         fontStyle = FontStyle.Bold,
         fontSize = 14,
     };
     mBtnStyle = new GUIStyle(HighLogic.Skin.button)
     {
         fontStyle = FontStyle.Bold,
         fontSize = 12,
     };
     mGreyBtnStyle = new GUIStyle(mBtnStyle)
     {
         fontStyle = FontStyle.Italic,
     };
     revert();
 }
Exemplo n.º 4
0
 public WatchWindow(KPU.Processor.Processor processor)
     : base(Guid.NewGuid(), "KPU Watch", new Rect(100, 100, 240, 320), WindowAlign.Floating)
 {
     mProcessor = processor;
     mKeyStyle = new GUIStyle(HighLogic.Skin.label)
     {
         fixedWidth = 100,
         fontStyle = FontStyle.Bold,
         fontSize = 11,
     };
     mValueStyle = new GUIStyle(HighLogic.Skin.label)
     {
         fixedWidth = 96,
         fontSize = 11,
     };
     mHeadingStyle = new GUIStyle(HighLogic.Skin.label)
     {
         fixedWidth = 200,
         fontStyle = FontStyle.Bold,
         fontSize = 14,
     };
 }