Class CustomSprite
A sprite element using a custom image texture.
Inheritance
Inherited Members
Namespace: GTA.UI
Assembly: ScriptHookVDotNet3.dll
Syntax
public class CustomSprite : ISpriteElement, IElement
Constructors
Name | Description |
---|---|
CustomSprite(String, SizeF, PointF) | Initializes a new instance of the CustomSprite class used for drawing external textures on the screen. |
CustomSprite(String, SizeF, PointF, Color) | Initializes a new instance of the CustomSprite class used for drawing external textures on the screen. |
CustomSprite(String, SizeF, PointF, Color, Single) | Initializes a new instance of the CustomSprite class used for drawing external textures on the screen. |
CustomSprite(String, SizeF, PointF, Color, Single, Boolean) | Initializes a new instance of the CustomSprite class used for drawing external textures on the screen. |
Properties
Name | Description |
---|---|
Centered | Gets or sets a value indicating whether this CustomSprite should be positioned based on its center or top left corner |
Color | Gets or sets the color of this CustomSprite. |
Enabled | Gets or sets a value indicating whether this CustomSprite will be drawn. |
Position | Gets or sets the position of this CustomSprite. |
Rotation | Gets or sets the rotation to draw thie CustomSprite. |
Size | Gets or sets the size to draw the CustomSprite |
Methods
Name | Description |
---|---|
Draw() | Draws this CustomSprite. |
Draw(SizeF) | Draws the CustomSprite at the specified offset. |
ScaledDraw() | Draws this CustomSprite using the width returned in ScaledWidth. |
ScaledDraw(SizeF) | Draws the CustomSprite at the specified offset using the width returned in ScaledWidth. |