C# Class RAGENativeUI.Elements.Sprite

Afficher le fichier Open project: alexguirre/RAGENativeUI Class Usage Examples

Méthodes publiques

Свойство Type Description
Color Color
Heading float
Position Point
Size System.Drawing.Size
TextureName string
Visible bool

Private Properties

Свойство Type Description
DrawTexture void
LoadTextureDict void
WriteFileFromResources string
WriteFileFromResources string

Méthodes publiques

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

Private Methods

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

Method Details

Draw() public méthode

Draws the sprite on a 1080-pixels height base.
public Draw ( ) : void
Résultat void

DrawTexture() public static méthode

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

LoadTextureDictionary() public méthode

public LoadTextureDictionary ( ) : void
Résultat void

Sprite() public méthode

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

Sprite() public méthode

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

Property Details

Color public_oe property

public Color Color
Résultat Color

Heading public_oe property

public float Heading
Résultat float

Position public_oe property

public Point Position
Résultat Point

Size public_oe property

public Size,System.Drawing Size
Résultat System.Drawing.Size

TextureName public_oe property

public string TextureName
Résultat string

Visible public_oe property

public bool Visible
Résultat bool