|
SHVDN
v3
An ASI plugin for Grand Theft Auto V, which allows running scripts written in any .NET language in-game. Developed by crosire https://github.com/crosire/scripthookvdotnet/
|
A sprite element using a custom image texture. More...
Public Member Functions | |
| CustomSprite (string filename, SizeF size, PointF position) | |
| Initializes a new instance of the CustomSprite class used for drawing external textures on the screen. More... | |
| CustomSprite (string filename, SizeF size, PointF position, Color color) | |
| Initializes a new instance of the CustomSprite class used for drawing external textures on the screen. More... | |
| CustomSprite (string filename, SizeF size, PointF position, Color color, float rotation) | |
| Initializes a new instance of the CustomSprite class used for drawing external textures on the screen. More... | |
| CustomSprite (string filename, SizeF size, PointF position, Color color, float rotation, bool centered) | |
| Initializes a new instance of the CustomSprite class used for drawing external textures on the screen. More... | |
| void | Draw () |
| Draws this CustomSprite. More... | |
| void | Draw (SizeF offset) |
| Draws the CustomSprite at the specified offset. More... | |
| virtual void | ScaledDraw () |
| Draws this CustomSprite using the width returned in Screen.ScaledWidth. More... | |
| virtual void | ScaledDraw (SizeF offset) |
| Draws the CustomSprite at the specified offset using the width returned in Screen.ScaledWidth. More... | |
Properties | |
| bool | Enabled [get, set] |
| Gets or sets a value indicating whether this CustomSprite will be drawn. More... | |
| Color | Color [get, set] |
| Gets or sets the color of this CustomSprite. More... | |
| PointF | Position [get, set] |
| Gets or sets the position of this CustomSprite. More... | |
| SizeF | Size [get, set] |
| Gets or sets the size to draw the CustomSprite More... | |
| float | Rotation [get, set] |
| Gets or sets the rotation to draw thie CustomSprite. More... | |
| bool | Centered [get, set] |
| Gets or sets a value indicating whether this CustomSprite should be positioned based on its center or top left corner More... | |
Properties inherited from GTA.UI.ISpriteElement | |
| SizeF | Size [get, set] |
| Gets or sets the size to draw the ISpriteElement More... | |
| float | Rotation [get, set] |
| Gets or sets the rotation to draw thie ISpriteElement. More... | |
Properties inherited from GTA.UI.IElement | |
| bool | Enabled [get, set] |
| Gets or sets a value indicating whether this IElement will be drawn. More... | |
| Color | Color [get, set] |
| Gets or sets the color of this IElement. More... | |
| PointF | Position [get, set] |
| Gets or sets the position of this IElement. More... | |
| bool | Centered [get, set] |
| Gets or sets a value indicating whether this IElement should be positioned based on its center or top left corner More... | |
A sprite element using a custom image texture.
| GTA.UI.CustomSprite.CustomSprite | ( | string | filename, |
| SizeF | size, | ||
| PointF | position | ||
| ) |
Initializes a new instance of the CustomSprite class used for drawing external textures on the screen.
| filename | Full path to location of the CustomSprite on the disc. |
| size | Set the Size of the CustomSprite. |
| position | Set the Position on screen where to draw the CustomSprite. |
| FileNotFoundException | Thrown if the specified file doesn't exist |
| GTA.UI.CustomSprite.CustomSprite | ( | string | filename, |
| SizeF | size, | ||
| PointF | position, | ||
| Color | color | ||
| ) |
Initializes a new instance of the CustomSprite class used for drawing external textures on the screen.
| filename | Full path to location of the CustomSprite on the disc. |
| size | Set the Size of the CustomSprite. |
| position | Set the Position on screen where to draw the CustomSprite. |
| color | Set the Color used to draw the CustomSprite. |
| FileNotFoundException | Thrown if the specified file doesn't exist |
| GTA.UI.CustomSprite.CustomSprite | ( | string | filename, |
| SizeF | size, | ||
| PointF | position, | ||
| Color | color, | ||
| float | rotation | ||
| ) |
Initializes a new instance of the CustomSprite class used for drawing external textures on the screen.
| filename | Full path to location of the CustomSprite on the disc. |
| size | Set the Size of the CustomSprite. |
| position | Set the Position on screen where to draw the CustomSprite. |
| color | Set the Color used to draw the CustomSprite. |
| rotation | Set the rotation to draw the sprite, measured in degrees, see also
|
| FileNotFoundException | Thrown if the specified file doesn't exist |
| GTA.UI.CustomSprite.CustomSprite | ( | string | filename, |
| SizeF | size, | ||
| PointF | position, | ||
| Color | color, | ||
| float | rotation, | ||
| bool | centered | ||
| ) |
Initializes a new instance of the CustomSprite class used for drawing external textures on the screen.
| filename | Full path to location of the CustomSprite on the disc. |
| size | Set the Size of the CustomSprite. |
| position | Set the Position on screen where to draw the CustomSprite. |
| color | Set the Color used to draw the CustomSprite. |
| rotation | Set the rotation to draw the sprite, measured in degrees, see also
|
| centered | Position the CustomSprite based on its center instead of top left corner, see also
|
| FileNotFoundException | Thrown if the specified file doesn't exist |
| void GTA.UI.CustomSprite.Draw | ( | ) |
Draws this CustomSprite.
Implements GTA.UI.IElement.
| void GTA.UI.CustomSprite.Draw | ( | SizeF | offset | ) |
Draws the CustomSprite at the specified offset.
| offset | The offset. |
Implements GTA.UI.IElement.
|
virtual |
Draws this CustomSprite using the width returned in Screen.ScaledWidth.
Implements GTA.UI.IElement.
|
virtual |
Draws the CustomSprite at the specified offset using the width returned in Screen.ScaledWidth.
| offset | The offset. |
Implements GTA.UI.IElement.
|
getset |
Gets or sets a value indicating whether this CustomSprite should be positioned based on its center or top left corner
true if centered; otherwise, false.
|
getset |
Gets or sets the color of this CustomSprite.
The color.
|
getset |
Gets or sets a value indicating whether this CustomSprite will be drawn.
true if enabled; otherwise, false.
|
getset |
Gets or sets the position of this CustomSprite.
The position scaled on a 1280*720 pixel base.
If ScaledDraw is called, the position will be scaled by the width returned in Screen.ScaledWidth.
|
getset |
Gets or sets the rotation to draw thie CustomSprite.
The rotation measured in degrees, clockwise increasing, 0.0 at vertical
|
getset |
Gets or sets the size to draw the CustomSprite
The size on a 1280*720 pixel base
If ScaledDraw is called, the size will be scaled by the width returned in Screen.ScaledWidth.