////////////////

        /// <summary></summary>
        /// <param name="theme"></param>
        /// <param name="skipThemeRefreshNow"></param>
        public UIThemedPanel(UITheme theme, bool skipThemeRefreshNow) : base()
        {
            this.Theme = theme;

            if (!skipThemeRefreshNow)
            {
                theme.ApplyPanel(this);
            }
        }
示例#2
0
        ////////////////

        public UIServerModListPopup(UITheme theme)
        {
            this.Theme        = theme;
            this.CurrentEntry = null;

            this.Width.Set(176f, 0f);
            this.Height.Set((16f * UIServerModListPopup.MaxModsPerColumn) + 16f, 0f);

            theme.ApplyPanel(this);
        }
示例#3
0
        ////////////////

        /// <summary>
        /// </summary>
        /// <param name="theme"></param>
        /// <param name="skipThemeRefreshNow"></param>
        /// <param name="text"></param>
        /// <param name="textScale"></param>
        /// <param name="large"></param>
        public UIThemedTextPanel(UITheme theme,
                                 bool skipThemeRefreshNow,
                                 string text,
                                 float textScale = 1f,
                                 bool large      = false)
            : base(text, textScale, large)
        {
            this.Theme = theme;

            if (!skipThemeRefreshNow)
            {
                theme.ApplyPanel(this);
            }
        }