/// <summary> /// Initializes a new instance of the <see cref="TextDraw" /> class. /// </summary> /// <param name="position">The position of the textdraw on the screen.</param> /// <param name="text">The text of the textdraw.</param> /// <param name="font">The <see cref="TextDrawFont" /> of the textdraw.</param> /// <param name="foreColor">The foreground <see cref="Color" /> of the textdraw.</param> public TextDraw(Vector2 position, string text, TextDrawFont font, Color foreColor) : this(position, text, font) { _foreColor = foreColor; }
/// <summary> /// Initializes a new instance of the <see cref="PlayerTextDraw" /> class. /// </summary> /// <param name="owner">The owner of the player-textdraw.</param> /// <param name="position">The position of the player-textdraw on the screen.</param> /// <param name="text">The text of the player-textdraw.</param> /// <param name="font">The <see cref="TextDrawFont" /> of the player-textdraw.</param> /// <param name="foreColor">The foreground <see cref="Color" /> of the player-textdraw.</param> public PlayerTextDraw(BasePlayer owner, Vector2 position, string text, TextDrawFont font, Color foreColor) : this(owner, position, text, font) { ForeColor = foreColor; }
/// <summary> /// Initializes a new instance of the <see cref="TextDraw" /> class. /// </summary> /// <param name="position">The position of the textdraw on the screen.</param> /// <param name="text">The text of the textdraw.</param> /// <param name="font">The <see cref="TextDrawFont" /> of the textdraw.</param> public TextDraw(Vector2 position, string text, TextDrawFont font) : this(position, text) { _font = font; }
/// <summary> /// Initializes a new instance of the <see cref="PlayerTextDraw" /> class. /// </summary> /// <param name="owner">The owner of the player-textdraw.</param> /// <param name="position">The position of the player-textdraw on the screen.</param> /// <param name="text">The text of the player-textdraw.</param> /// <param name="font">The <see cref="TextDrawFont" /> of this textdraw.</param> public PlayerTextDraw(BasePlayer owner, Vector2 position, string text, TextDrawFont font) : this(owner, position, text) { Font = font; }