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/
GTA.UI.IElement Interface Reference
Inheritance diagram for GTA.UI.IElement:
GTA.UI.ContainerElement GTA.UI.ISpriteElement GTA.UI.TextElement GTA.UI.CustomSprite GTA.UI.Sprite

Public Member Functions

void Draw ()
 Draws this IElement this frame. More...
 
void Draw (SizeF offset)
 Draws this IElement this frame at the specified offset. More...
 
void ScaledDraw ()
 Draws this IElement this frame using the width returned in Screen.ScaledWidth. More...
 
void ScaledDraw (SizeF offset)
 Draws this IElement this frame 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 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...
 

Member Function Documentation

◆ Draw() [1/2]

void GTA.UI.IElement.Draw ( )

◆ Draw() [2/2]

void GTA.UI.IElement.Draw ( SizeF  offset)

Draws this IElement this frame at the specified offset.

Parameters
offsetThe offset to shift the draw position of this IElement using a 1280*720 pixel base.

Implemented in GTA.UI.TextElement, GTA.UI.Sprite, GTA.UI.CustomSprite, and GTA.UI.ContainerElement.

◆ ScaledDraw() [1/2]

void GTA.UI.IElement.ScaledDraw ( )

Draws this IElement this frame using the width returned in Screen.ScaledWidth.

Implemented in GTA.UI.TextElement, GTA.UI.Sprite, GTA.UI.CustomSprite, and GTA.UI.ContainerElement.

◆ ScaledDraw() [2/2]

void GTA.UI.IElement.ScaledDraw ( SizeF  offset)

Draws this IElement this frame at the specified offset using the width returned in Screen.ScaledWidth.

Parameters
offsetThe offset to shift the draw position of this IElement using a Screen.ScaledWidth*720 pixel base.

Implemented in GTA.UI.TextElement, GTA.UI.Sprite, GTA.UI.CustomSprite, and GTA.UI.ContainerElement.

Property Documentation

◆ Centered

bool GTA.UI.IElement.Centered
getset

Gets or sets a value indicating whether this IElement should be positioned based on its center or top left corner

true if centered; otherwise, false.

◆ Color

Color GTA.UI.IElement.Color
getset

Gets or sets the color of this IElement.

The color.

◆ Enabled

bool GTA.UI.IElement.Enabled
getset

Gets or sets a value indicating whether this IElement will be drawn.

true if enabled; otherwise, false.

◆ Position

PointF GTA.UI.IElement.Position
getset

Gets or sets the position of this IElement.

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.


The documentation for this interface was generated from the following file: