C# Class RAGENativeUI.Elements.Sprite

Mostrar archivo Open project: alexguirre/RAGENativeUI Class Usage Examples

Public Properties

Property Type Description
Color Color
Heading float
Position Point
Size System.Drawing.Size
TextureName string
Visible bool

Private Properties

Property Type Description
DrawTexture void
LoadTextureDict void
WriteFileFromResources string
WriteFileFromResources string

Public Methods

Method 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

Method 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 method

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

DrawTexture() public static method

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
return void

LoadTextureDictionary() public method

public LoadTextureDictionary ( ) : void
return void

Sprite() public method

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
return System

Sprite() public method

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
return System

Property Details

Color public_oe property

public Color Color
return Color

Heading public_oe property

public float Heading
return float

Position public_oe property

public Point Position
return Point

Size public_oe property

public Size,System.Drawing Size
return System.Drawing.Size

TextureName public_oe property

public string TextureName
return string

Visible public_oe property

public bool Visible
return bool