/// <summary> /// Draw the line /// </summary> public bool Draw() { return(MtaClient.DxDrawLine((int)Position.X, (int)Position.Y, (int)End.X, (int)End.Y, Color.Hex, Width, PostGUI)); }
public static bool DrawLine(Vector2 startPosition, Vector2 endPosition, Color color, float width = 1, bool postGui = false) { return(MtaClient.DxDrawLine((int)startPosition.X, (int)startPosition.Y, (int)endPosition.X, (int)endPosition.Y, color.Hex, width, postGui)); }
/// <summary> /// Draw the line /// </summary> public bool Draw(RootElement source, OnRenderEventArgs eventArgs) { return(MtaClient.DxDrawLine((int)Position.X, (int)Position.Y, (int)End.X, (int)End.Y, Color.Hex, Width, PostGUI)); }