C# Класс Ensage.Common.Menu.MenuUtils

The user interface utils class.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
MainMenuDraw ( Menu menu, double add ) : void

The main menu draw.

Описание методов

DrawBox() публичный статический Метод

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
Результат void

DrawBoxBordered() публичный статический Метод

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
Результат void

DrawBoxBordered() публичный статический Метод

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
Результат void

DrawBoxFilled() публичный статический Метод

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
Результат void

DrawLine() публичный статический Метод

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
Результат void

RoundedRectangle() публичный статический Метод

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. ///
Результат void

RoundedRectangle() публичный статический Метод

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
Результат void