public HallOfFameBrowser()
                : base(Constants.WINDOW_ID_HALLOFFAMEBROWSER, FinalFrontier.configuration.GetHallOfFameWindowTitle())
            {
                STYLE_KERBAL_BUTTON            = new GUIStyle(HighLogic.Skin.button);
                STYLE_KERBAL_BUTTON.fixedWidth = KERBAL_BUTTON_WIDTH;
                STYLE_KERBAL_BUTTON.clipping   = TextClipping.Clip;
                STYLE_KERBAL_STATUS            = new GUIStyle(HighLogic.Skin.button);
                STYLE_KERBAL_STATUS.fixedWidth = 20;
                STYLE_KERBAL_AREA                        = new GUIStyle(HighLogic.Skin.box);
                STYLE_KERBAL_AREA.fixedWidth             = KERBAL_AREA_WIDTH;
                STYLE_KERBAL_AREA.fixedHeight            = KERBAL_AREA_HEIGHT;
                STYLE_KERBAL_AREA.clipping               = TextClipping.Clip;
                STYLE_KERBAL_AREA_EXPANDED               = new GUIStyle(HighLogic.Skin.box);
                STYLE_KERBAL_AREA_EXPANDED.fixedWidth    = KERBAL_AREA_WIDTH;
                STYLE_KERBAL_AREA_EXPANDED.stretchHeight = true;
                STYLE_KERBAL_AREA_EXPANDED.clipping      = TextClipping.Clip;
                STYLE_KERBAL_INFO                        = new GUIStyle(HighLogic.Skin.label);
                STYLE_RIBBON_AREA                        = new GUIStyle(HighLogic.Skin.label);
                STYLE_RIBBON_AREA.stretchHeight          = true;
                STYLE_RIBBON_AREA.stretchWidth           = true;
                STYLE_RIBBON_AREA.padding                = new RectOffset(10, 10, 2, 2);

                TEXTURE_AVAILABLE = ImageLoader.GetTexture(FinalFrontier.RESOURCE_PATH + "active");
                TEXTURE_ASSIGNED  = ImageLoader.GetTexture(FinalFrontier.RESOURCE_PATH + "assigned");
                TEXTURE_KILLED    = ImageLoader.GetTexture(FinalFrontier.RESOURCE_PATH + "killed");

                ribbonBrowser = new RibbonBrowser();
                display       = new DisplayWindow();
                about         = new AboutWindow();
                configWindow  = new ConfigWindow();
            }
示例#2
0
            public HallOfFameBrowser()
                : base(Constants.WINDOW_ID_HALLOFFAMEBROWSER, FinalFrontier.Config.GetHallOfFameWindowTitle())
            {
                styleKerbalButton            = new GUIStyle(HighLogic.Skin.button);
                styleKerbalButton.fixedWidth = kButtonWidth;
                styleKerbalButton.clipping   = TextClipping.Clip;
                styleKerbalStatus            = new GUIStyle(HighLogic.Skin.button);
                styleKerbalStatus.fixedWidth = 20;
                styleKerbalArea                       = new GUIStyle(HighLogic.Skin.box);
                styleKerbalArea.fixedWidth            = kAreaWidth;
                styleKerbalArea.fixedHeight           = kAreaHeight;
                styleKerbalArea.clipping              = TextClipping.Clip;
                styleKerbalAreaExpanded               = new GUIStyle(HighLogic.Skin.box);
                styleKerbalAreaExpanded.fixedWidth    = kAreaWidth;
                styleKerbalAreaExpanded.stretchHeight = true;
                styleKerbalAreaExpanded.clipping      = TextClipping.Clip;
                styleKerbalInfo                       = new GUIStyle(HighLogic.Skin.label);
                styleRibbonArea                       = new GUIStyle(HighLogic.Skin.label);
                styleRibbonArea.stretchHeight         = true;
                styleRibbonArea.stretchWidth          = true;
                styleRibbonArea.padding               = new RectOffset(10, 10, 2, 2);

                textureAvailable = ImageLoader.GetTexture(FinalFrontier.ResourcePath + "active");
                textureAssigned  = ImageLoader.GetTexture(FinalFrontier.ResourcePath + "assigned");
                textureKilled    = ImageLoader.GetTexture(FinalFrontier.ResourcePath + "killed");

                ribbonBrowser = new RibbonBrowser();
                display       = new DisplayWindow();
                about         = new AboutWindow();
                configWindow  = new ConfigWindow();
            }