C# Class Ensage.Common.Menu.MenuUtils

The user interface utils class.
显示文件 Open project: EnsageSharp/Ensage.Common Class Usage Examples

Public Methods

Method Description
DrawBox ( float x, float y, float w, float h, float linewidth, Color color ) : void

Draws a Box

DrawBoxBordered ( float x, float y, float w, float h, float borderWidth, Color color, Color colorBorder ) : void

Draws a bordered Box

DrawBoxBordered ( float x, float y, float w, float h, float borderWidth, DotaTexture texture, Color colorBorder ) : void
DrawBoxFilled ( float x, float y, float w, float h, Color color ) : void

Draws a filled Box

DrawLine ( float xa, float ya, float xb, float yb, float dwWidth, Color color ) : void

Draws a line from X to Y with a width and a color

RoundedRectangle ( System.Vector2 position, System.Vector2 size, Color color ) : void

The rounded rectangle.

RoundedRectangle ( float x, int y, int w, int h, int iSmooth, Color color ) : void

Draws a rounded Rectangle

Private Methods

Method Description
MainMenuDraw ( Menu menu, double add ) : void

The main menu draw.

Method Details

DrawBox() public static method

Draws a Box
public static DrawBox ( float x, float y, float w, float h, float linewidth, Color color ) : void
x float Position X
y float Position Y
w float Width
h float Height
linewidth float Line Width
color Color Color
return void

DrawBoxBordered() public static method

Draws a bordered Box
public static DrawBoxBordered ( float x, float y, float w, float h, float borderWidth, Color color, Color colorBorder ) : void
x float Position X
y float Position Y
w float Width
h float Height
borderWidth float The border width
color Color Color
colorBorder Color Border Color
return void

DrawBoxBordered() public static method

public static DrawBoxBordered ( float x, float y, float w, float h, float borderWidth, DotaTexture texture, Color colorBorder ) : void
x float
y float
w float
h float
borderWidth float
texture DotaTexture
colorBorder Color
return void

DrawBoxFilled() public static method

Draws a filled Box
public static DrawBoxFilled ( float x, float y, float w, float h, Color color ) : void
x float Position X
y float Position Y
w float Width
h float Height
color Color Color
return void

DrawLine() public static method

Draws a line from X to Y with a width and a color
public static DrawLine ( float xa, float ya, float xb, float yb, float dwWidth, Color color ) : void
xa float Position X1
ya float Position Y1
xb float Position X2
yb float Position Y2
dwWidth float Width
color Color Color
return void

RoundedRectangle() public static method

The rounded rectangle.
public static RoundedRectangle ( System.Vector2 position, System.Vector2 size, Color color ) : void
position System.Vector2 /// The position. ///
size System.Vector2 /// The size. ///
color Color /// The color. ///
return void

RoundedRectangle() public static method

Draws a rounded Rectangle
public static RoundedRectangle ( float x, int y, int w, int h, int iSmooth, Color color ) : void
x float Position X
y int Position Y
w int Width
h int Height
iSmooth int Smooth
color Color Color
return void