コード例 #1
0
ファイル: LibraryWindow.cs プロジェクト: ec429/kpu_mod
 public LibraryWindow(CodeWindow cw)
     : base(Guid.NewGuid(), "KPU Program Library", new Rect(cw.Position.xMin, cw.Position.yMax + 5, 600, 320), WindowAlign.Floating)
 {
     mCW = cw;
     mSelected = null;
     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(HighLogic.Skin.button)
     {
         fontStyle = FontStyle.Italic,
     };
     mSelectionStyle = new GUIStyle(HighLogic.Skin.label)
     {
         fontStyle = FontStyle.Bold,
         normal = new GUIStyleState() { textColor = Color.cyan, }
     };
     mGoodNewsStyle = new GUIStyle(HighLogic.Skin.label)
     {
         normal = new GUIStyleState() { textColor = Color.green, }
     };
     mBadNewsStyle = new GUIStyle(HighLogic.Skin.label)
     {
         fontStyle = FontStyle.Bold,
         normal = new GUIStyleState() { textColor = Color.red, }
     };
 }
コード例 #2
0
ファイル: LibraryWindow.cs プロジェクト: rogersk/kpu_mod
 public LibraryWindow(CodeWindow cw)
     : base(Guid.NewGuid(), "KPU Program Library", new Rect(cw.Position.xMin, cw.Position.yMax + 5, 600, 320), WindowAlign.Floating)
 {
     mCW           = cw;
     mSelected     = null;
     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(HighLogic.Skin.button)
     {
         fontStyle = FontStyle.Italic,
     };
     mSelectionStyle = new GUIStyle(HighLogic.Skin.label)
     {
         fontStyle = FontStyle.Bold,
         normal    = new GUIStyleState()
         {
             textColor = Color.cyan,
         }
     };
     mGoodNewsStyle = new GUIStyle(HighLogic.Skin.label)
     {
         normal = new GUIStyleState()
         {
             textColor = Color.green,
         }
     };
     mBadNewsStyle = new GUIStyle(HighLogic.Skin.label)
     {
         fontStyle = FontStyle.Bold,
         normal    = new GUIStyleState()
         {
             textColor = Color.red,
         }
     };
 }