C# Класс RAGENativeUI.Elements.Sprite

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Color Color
Heading float
Position Point
Size System.Drawing.Size
TextureName string
Visible bool

Private Properties

Свойство Тип Описание
DrawTexture void
LoadTextureDict void
WriteFileFromResources string
WriteFileFromResources string

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

Метод Описание
Draw ( ) : void

Draws the sprite on a 1080-pixels height base.

DrawTexture ( Texture texture, Point position, Size size, Rage graphics ) : void

Draws a custom texture from a file on a 1080-pixels height base.

LoadTextureDictionary ( ) : void
Sprite ( string textureDict, string textureName, Point position, Size size ) : System

Creates a game sprite object from a texture dictionary and texture name.

Sprite ( string textureDict, string textureName, Point position, Size size, float heading, Color color ) : System

Creates a game sprite object from a texture dictionary and texture name.

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

Метод Описание
DrawTexture ( Texture texture, Point position, Size size, GraphicsEventArgs canvas ) : void
LoadTextureDict ( ) : void
WriteFileFromResources ( Assembly yourAssembly, string fullResourceName ) : string
WriteFileFromResources ( Assembly yourAssembly, string fullResourceName, string savePath ) : string

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

Draw() публичный Метод

Draws the sprite on a 1080-pixels height base.
public Draw ( ) : void
Результат void

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

Draws a custom texture from a file on a 1080-pixels height base.
public static DrawTexture ( Texture texture, Point position, Size size, Rage graphics ) : void
texture Texture Your custom texture object.
position Point
size System.Drawing.Size
graphics Rage
Результат void

LoadTextureDictionary() публичный Метод

public LoadTextureDictionary ( ) : void
Результат void

Sprite() публичный Метод

Creates a game sprite object from a texture dictionary and texture name.
public Sprite ( string textureDict, string textureName, Point position, Size size ) : System
textureDict string
textureName string
position Point
size System.Drawing.Size
Результат System

Sprite() публичный Метод

Creates a game sprite object from a texture dictionary and texture name.
public Sprite ( string textureDict, string textureName, Point position, Size size, float heading, Color color ) : System
textureDict string
textureName string
position Point
size System.Drawing.Size
heading float
color Color
Результат System

Описание свойств

Color публичное свойство

public Color Color
Результат Color

Heading публичное свойство

public float Heading
Результат float

Position публичное свойство

public Point Position
Результат Point

Size публичное свойство

public Size,System.Drawing Size
Результат System.Drawing.Size

TextureName публичное свойство

public string TextureName
Результат string

Visible публичное свойство

public bool Visible
Результат bool