|
|
@ -71,6 +71,9 @@ namespace SemiColinGames { |
|
|
|
} |
|
|
|
|
|
|
|
public static void DrawToasts(SpriteBatch spriteBatch, SpriteFont font) { |
|
|
|
if (!Enabled) { |
|
|
|
return; |
|
|
|
} |
|
|
|
int y = 10; |
|
|
|
foreach (var toast in toasts) { |
|
|
|
spriteBatch.DrawString(font, toast, new Vector2(10, y), Color.Teal); |
|
|
@ -103,7 +106,7 @@ namespace SemiColinGames { |
|
|
|
Point[] points = Line.Rasterize(line.Start, line.End); |
|
|
|
foreach (var point in points) { |
|
|
|
spriteBatch.Draw( |
|
|
|
whiteTexture, new Rectangle(point.X, point.Y, 1, 1), line.Color); |
|
|
|
whiteTexture, new Rectangle(point.X, point.Y, 1, 1), line.Color); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|