//////////////// /// <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); } }
//////////////// 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); }
//////////////// /// <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); } }