C# Class NativeUI.Sprite

Afficher le fichier Open project: Guad/NativeUI Class Usage Examples

Méthodes publiques

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

Méthodes publiques

Méthode Description
Draw ( ) : void

Draws the sprite on a 1080-pixels height base.

DrawTexture ( string path, Point position, Size size ) : void

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

DrawTexture ( string path, Point position, Size size, float rotation, Color color ) : void

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

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.

WriteFileFromResources ( Assembly yourAssembly, string fullResourceName ) : string

Save an embedded resource to a temporary file.

WriteFileFromResources ( Assembly yourAssembly, string fullResourceName, string savePath ) : string

Save an embedded resource to a concrete path.

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

Draw a custom texture from a file on a 1080-pixels height base.
public static DrawTexture ( string path, Point position, Size size ) : void
path string Path to texture file.
position Point
size System.Drawing.Size
Résultat void

DrawTexture() public static méthode

Draw a custom texture from a file on a 1080-pixels height base.
public static DrawTexture ( string path, Point position, Size size, float rotation, Color color ) : void
path string Path to texture file.
position Point
size Size
rotation float
color Color
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 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 Size
heading float
color Color
Résultat System

WriteFileFromResources() public static méthode

Save an embedded resource to a temporary file.
public static WriteFileFromResources ( Assembly yourAssembly, string fullResourceName ) : string
yourAssembly Assembly Your executing assembly.
fullResourceName string Resource name including your solution name. E.G MyMenuMod.banner.png
Résultat string

WriteFileFromResources() public static méthode

Save an embedded resource to a concrete path.
public static WriteFileFromResources ( Assembly yourAssembly, string fullResourceName, string savePath ) : string
yourAssembly Assembly Your executing assembly.
fullResourceName string Resource name including your solution name. E.G MyMenuMod.banner.png
savePath string Path to where save the file, including the filename.
Résultat string

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

TextureName public_oe property

public string TextureName
Résultat string

Visible public_oe property

public bool Visible
Résultat bool