Property | Type | Description | |
---|---|---|---|
Color | Color | ||
Heading | float | ||
Position | Point | ||
Size | Size | ||
TextureName | string | ||
Visible | bool |
Method | Description | |
---|---|---|
Draw ( ) : void |
Draws the sprite on a 1080-pixels height base.
|
|
DrawTexture ( string path, Point position, |
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.
|
public static DrawTexture ( string path, Point position, |
||
path | string | Path to texture file. |
position | Point | |
size | ||
return | void |
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 | |
return | void |
public Sprite ( string textureDict, string textureName, Point position, Size size ) : System | ||
textureDict | string | |
textureName | string | |
position | Point | |
size | Size | |
return | System |
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 | |
return | System |
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 |
return | string |
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. |
return | string |