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

TextDrawGetBackgroundColour

Предупреждение

В версии omp v1.1.0.2612 добавлено следующее: функция. В более ранних версиях это не работает!

Description​

Gets the background colour of a textdraw.

NameDescription
Text:textidThe ID of the textdraw to get the background colour of.

Returns​

Returns the background colour of the textdraw.

Examples​

new Text:gMyTextdraw;

public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(123.0, 123.0, "Example");
TextDrawSetOutline(gMyTextdraw, 1);
TextDrawBackgroundColour(gMyTextdraw, 0xFF0000FF);

new backgroundColour = TextDrawGetBackgroundColour(gMyTextdraw);
// backgroundColour = 0xFF0000FF
return 1;
}