跳到主要內容

TextDrawGetBoxColour

注意

此函式於 omp v1.1.0.2612 版本中新增,在更早的版本中無法使用!

Description​

Gets the box colour of a textdraw.

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

Returns​

Returns the box colour of the textdraw.

Examples​

new Text:gMyTextdraw;

public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(123.0, 123.0, "Example");
TextDrawUseBox(gMyTextdraw, true);
TextDrawBoxColour(gMyTextdraw, 0xAA0000FF);

new boxColour = TextDrawGetBoxColour(gMyTextdraw);
// boxColour = 0xAA0000FF
return 1;
}