Editor crash fix

This commit is contained in:
Anuken
2021-12-11 16:23:42 -05:00
parent 7e9dd2d6f0
commit 86a6ec6bd2
5 changed files with 100 additions and 4 deletions

View File

@@ -82,6 +82,13 @@ public class Drawf{
Draw.reset();
}
public static void dashRect(Color color, Rect rect){
dashLine(color, rect.x, rect.y, rect.x + rect.width, rect.y);
dashLine(color, rect.x, rect.y, rect.x, rect.y + rect.height);
dashLine(color, rect.x + rect.width, rect.y, rect.x + rect.width, rect.y + rect.height);
dashLine(color, rect.x, rect.y + rect.height, rect.x + rect.width, rect.y + rect.height);
}
public static void target(float x, float y, float rad, Color color){
target(x, y, rad, 1, color);
}