示例#1
0
 /// <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));
 }
示例#2
0
 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));
 }
示例#3
0
 /// <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));
 }