/// <summary> /// Draws a bordered rectangle. /// </summary> /// <param name="sb">The spriteBatch to draw to. Typically `Main.spriteBatch`.</param> /// <param name="bgColor">Fill color.</param> /// <param name="borderColor"></param> /// <param name="rect">Position and dimensions of rectangle.</param> /// <param name="borderWidth"></param> public static void DrawBorderedRect(SpriteBatch sb, Color bgColor, Color borderColor, Rectangle rect, int borderWidth) { HUDHelpers.DrawBorderedRect(sb, bgColor, new Color?(borderColor), rect, borderWidth); }
/// <summary> /// Draws a bordered rectangle. /// </summary> /// <param name="sb">The spriteBatch to draw to. Typically `Main.spriteBatch`.</param> /// <param name="bgColor">Fill color.</param> /// <param name="borderColor"></param> /// <param name="position"></param> /// <param name="size"></param> /// <param name="borderWidth"></param> public static void DrawBorderedRect(SpriteBatch sb, Color bgColor, Color borderColor, Vector2 position, Vector2 size, int borderWidth) { HUDHelpers.DrawBorderedRect(sb, bgColor, new Color?(borderColor), position, size, borderWidth); }