C# Class Ensage.Common.Menu.MenuUtils

The user interface utils class.
Afficher le fichier Open project: EnsageSharp/Ensage.Common Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
MainMenuDraw ( Menu menu, double add ) : void

The main menu draw.

Method Details

DrawBox() public static méthode

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
Résultat void

DrawBoxBordered() public static méthode

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
Résultat void

DrawBoxBordered() public static méthode

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
Résultat void

DrawBoxFilled() public static méthode

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
Résultat void

DrawLine() public static méthode

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
Résultat void

RoundedRectangle() public static méthode

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. ///
Résultat void

RoundedRectangle() public static méthode

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
Résultat void