/// <summary> /// Instantiates a new control panel /// </summary> /// <param name="parent">Control to become a child of</param> /// <param name="text">Text value of the control</param> /// <param name="font">Font to render with</param> /// <param name="color">Color of the rendered text</param> /// <param name="textSize">Size of the text</param> public ControlLabel(Control parent, string text, DrawableFont font, Color color, int textSize = 16) : base(parent, new Vector2(0, 0)) { Font = font; Text = text; Col = color; TextSize = textSize; }
/// <summary> /// Instantiates a new ComponentString /// </summary> /// <param name="text">Initial text</param> /// <param name="font">Font to render with</param> public ComponentString(string text, DrawableFont font) { Font = font; Text = text; }