முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

TextDrawBoxColour

எச்சரிக்கை

செயல்பாடு என்பது omp v1.1.0.2612 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

Description​

Adjusts the text box colour (only used if TextDrawUseBox 'enableBox' parameter is 'true').

NameDescription
Text:textidThe TextDraw to change
boxColourThe colour. Opacity is set by the alpha intensity of colour (eg. colour 0x000000FF has a solid black box opacity, whereas 0x000000AA has a semi-transparent black box opacity).

Returns​

This function does not return any specific values.

Examples​

new Text:gMyTextdraw;

public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(123.0, 123.0, "Example");
TextDrawUseBox(gMyTextdraw, true);
TextDrawBoxColour(gMyTextdraw, 0xFFFFFFFF);
return 1;
}

Good to know​

உதவிக்குறிப்பு

If you want to change the box color of a textdraw that is already shown, you don't have to recreate it. Simply use TextDrawShowForPlayer/TextDrawShowForAll after modifying the textdraw and the change will be visible.