Assorted static "helper" functions pertaining to drawing to the screen.
More...
|
static void | DrawBorderedRect (SpriteBatch sb, Color bgColor, Color borderColor, Vector2 position, Vector2 size, int borderWidth) |
| Draws a bordered rectangle. More...
|
|
static void | DrawBorderedRect (SpriteBatch sb, Color bgColor, Color borderColor, Rectangle rect, int borderWidth) |
| Draws a bordered rectangle. More...
|
|
static void | DrawBorderedRect (SpriteBatch sb, Color? bgColor, Color? borderColor, Vector2 position, Vector2 size, int borderWidth) |
| Draws a rectangle with an optional border or optional fill color. More...
|
|
static void | DrawBorderedRect (SpriteBatch sb, Color? bgColor, Color? borderColor, Rectangle rect, int borderWidth) |
| Draws a rectangle with an optional border or optional fill color. More...
|
|
static void | DrawTerrariaString (SpriteBatch sb, string text, Vector2 pos, float scale) |
| Draws a "Terraria style" string, complete with pulsing and black border. More...
|
|
Assorted static "helper" functions pertaining to drawing to the screen.
Definition at line 12 of file DrawHelpers.cs.
◆ DrawBorderedRect() [1/4]
static void HamstarHelpers.Helpers.Draw.DrawHelpers.DrawBorderedRect |
( |
SpriteBatch |
sb, |
|
|
Color |
bgColor, |
|
|
Color |
borderColor, |
|
|
Vector2 |
position, |
|
|
Vector2 |
size, |
|
|
int |
borderWidth |
|
) |
| |
|
static |
Draws a bordered rectangle.
- Parameters
-
sb | The spriteBatch to draw to. Typically Main.spriteBatch . |
bgColor | Fill color. |
borderColor | |
position | |
size | |
borderWidth | |
Definition at line 22 of file DrawHelpers.cs.
◆ DrawBorderedRect() [2/4]
static void HamstarHelpers.Helpers.Draw.DrawHelpers.DrawBorderedRect |
( |
SpriteBatch |
sb, |
|
|
Color |
bgColor, |
|
|
Color |
borderColor, |
|
|
Rectangle |
rect, |
|
|
int |
borderWidth |
|
) |
| |
|
static |
Draws a bordered rectangle.
- Parameters
-
sb | The spriteBatch to draw to. Typically Main.spriteBatch . |
bgColor | Fill color. |
borderColor | |
rect | Position and dimensions of rectangle. |
borderWidth | |
Definition at line 33 of file DrawHelpers.cs.
◆ DrawBorderedRect() [3/4]
static void HamstarHelpers.Helpers.Draw.DrawHelpers.DrawBorderedRect |
( |
SpriteBatch |
sb, |
|
|
Color? |
bgColor, |
|
|
Color? |
borderColor, |
|
|
Vector2 |
position, |
|
|
Vector2 |
size, |
|
|
int |
borderWidth |
|
) |
| |
|
static |
Draws a rectangle with an optional border or optional fill color.
- Parameters
-
sb | The spriteBatch to draw to. Typically Main.spriteBatch . |
bgColor | Fill color. Use null for transparent. |
borderColor | Border color. User `null for transparent. |
position | |
size | |
borderWidth | |
Definition at line 46 of file DrawHelpers.cs.
◆ DrawBorderedRect() [4/4]
static void HamstarHelpers.Helpers.Draw.DrawHelpers.DrawBorderedRect |
( |
SpriteBatch |
sb, |
|
|
Color? |
bgColor, |
|
|
Color? |
borderColor, |
|
|
Rectangle |
rect, |
|
|
int |
borderWidth |
|
) |
| |
|
static |
Draws a rectangle with an optional border or optional fill color.
- Parameters
-
sb | The spriteBatch to draw to. Typically Main.spriteBatch . |
bgColor | Fill color. Use null for transparent. |
borderColor | Border color. User `null for transparent. |
rect | Position and dimensions of rectangle. |
borderWidth | |
Definition at line 65 of file DrawHelpers.cs.
◆ DrawTerrariaString()
static void HamstarHelpers.Helpers.Draw.DrawHelpers.DrawTerrariaString |
( |
SpriteBatch |
sb, |
|
|
string |
text, |
|
|
Vector2 |
pos, |
|
|
float |
scale |
|
) |
| |
|
static |
Draws a "Terraria style" string, complete with pulsing and black border.
- Parameters
-
Definition at line 87 of file DrawHelpers.cs.
The documentation for this class was generated from the following files: