예제 #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
파일: Dx.cs 프로젝트: calinipate/Slipe-Core
 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));
 }