Exemplo n.º 1
0
        } // dis is exact bounds

        public static void ESPBOX(Vector2 BoxTop, Vector2 BoxBottom, float Width, Color color)                                                            // this is 2D outline rect
        {
            CustomCanvas.DrawLine(new Vector2((int)(BoxTop.x - Width), (int)BoxTop.y), new Vector2((int)(BoxTop.x + Width - 1), (int)BoxTop.y), color);   // TOP
            CustomCanvas.DrawLine(new Vector2((int)(BoxTop.x - Width), (int)BoxTop.y), new Vector2((int)(BoxTop.x - Width), (int)BoxBottom.y), color);    // Left
            CustomCanvas.DrawLine(new Vector2((int)(BoxTop.x + Width), (int)BoxTop.y), new Vector2((int)(BoxTop.x + Width), (int)BoxBottom.y), color);    // Right
            CustomCanvas.DrawLine(new Vector2((int)(BoxTop.x - Width), (int)BoxBottom.y), new Vector2((int)(BoxTop.x + Width), (int)BoxBottom.y), color); // Bottom
        }
Exemplo n.º 2
0
        public static void DrawCrosshair()
        {
            float sx = Screen.width / 2 + 1f;
            float sy = Screen.height / 2 + 1f;

            CustomCanvas.DrawLine(new Vector2(sx, sy - 20f), new Vector2(sx, sy + 20f), Color.yellow);
            CustomCanvas.DrawLine(new Vector2(sx - 20f, sy), new Vector2(sx + 20f, sy), Color.yellow);
        }
Exemplo n.º 3
0
        public static void HeliosBox(float sx, float sy)
        {
            sx += 1f;
            sy += 1f;
            Color color = new Color((float)byte.MaxValue, (float)byte.MaxValue, 0.0f);

            CustomCanvas.DrawLine(new Vector2(sx - 20f, sy - 20f), new Vector2(sx + 20f, sy - 20f), color);
            CustomCanvas.DrawLine(new Vector2(sx + 20f, sy - 20f), new Vector2(sx + 20f, sy + 20f), color);
            //CustomCanvas.DrawLine(new Vector2(sx, sy - 20f), new Vector2(sx, sy + 20f), color);
            //CustomCanvas.DrawLine(new Vector2(sx - 20f, sy), new Vector2(sx + 20f, sy), color);
            CustomCanvas.DrawLine(new Vector2(sx - 20f, sy + 20f), new Vector2(sx + 20f, sy + 20f), color);
            CustomCanvas.DrawLine(new Vector2(sx - 20f, sy - 20f), new Vector2(sx - 20f, sy + 20f), color);
        }