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, } }; }