Перейти к основному содержимому

TextDrawGetAlignment

warning

This function was added in omp v1.1.0.2612 and will not work in earlier versions!

Description

Gets the text alignment of a textdraw.

NameDescription
Text:textidThe ID of the textdraw to get the alignment of.

Returns

Returns the textdraw text alignment.

Examples

new Text:gMyTextdraw;

public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(320.0, 425.0, "This is an example textdraw");
TextDrawAlignment(gMyTextdraw, TEXT_DRAW_ALIGN_CENTER);

new TEXT_DRAW_ALIGN:align = TextDrawGetAlignment(gMyTextdraw);
// align = TEXT_DRAW_ALIGN_CENTER
return 1;
}