Пример #1
0
 /// <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)
 {
     DrawLibraries.DrawBorderedRect(sb, bgColor, new Color?(borderColor), rect, borderWidth);
 }
Пример #2
0
 /// <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)
 {
     DrawLibraries.DrawBorderedRect(sb, bgColor, new Color?(borderColor), position, size, borderWidth);
 }