示例#1
0
 /// <summary>
 /// Draw this rectangle
 /// </summary>
 public bool Draw()
 {
     return(MtaClient.DxDrawRectangle(Position.X, Position.Y, Dimensions.X, Dimensions.Y, Color.Hex, PostGUI, SubPixelPositioning));
 }
示例#2
0
 public static bool DrawRectangle(Vector2 position, Vector2 dimensions, Color color, bool postGui = false, bool subPixelPositioning = false)
 {
     return(MtaClient.DxDrawRectangle(position.X, position.Y, dimensions.X, dimensions.Y, color.Hex, postGui, subPixelPositioning));
 }
示例#3
0
 /// <summary>
 /// Draw this rectangle
 /// </summary>
 public bool Draw(RootElement source, OnRenderEventArgs eventArgs)
 {
     return(MtaClient.DxDrawRectangle(Position.X, Position.Y, Dimensions.X, Dimensions.Y, Color.Hex, PostGUI, SubPixelPositioning));
 }