SA-MP Forums Archive
TD Model background - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: TD Model background (/showthread.php?tid=630898)



TD Model background - LStrike17 - 19.03.2017

Hello guys, I have problem with textdraw background... Background is black...
Код:
	TDInfo = TextDrawCreate(437.200042, 435.680023, "LD_SPAC:white");
	TextDrawLetterSize(TDInfo, 0.174797, 4.631999);
	TextDrawTextSize(TDInfo, -20.800035, 11.200028);
	TextDrawAlignment(TDInfo, 1);
	TextDrawColor(TDInfo, -1);
	TextDrawBackgroundColor(YMenuTD, 0x00000000 );
	TextDrawUseBox(TDInfo, true);
	TextDrawBoxColor(TDInfo, 0x00000000 );
	TextDrawSetShadow(TDInfo, 0);
	TextDrawSetOutline(TDInfo, 0);
	TextDrawFont(TDInfo, 5);
	TextDrawSetPreviewModel(TDInfo, 1239);
	TextDrawSetPreviewRot(TDInfo, 0.000000, 0.000000, 0.000000, 1.000000);
Please help!


Re: TD Model background - LEOTorres - 19.03.2017

Alter the values of TextDrawBackgroundColor and TextDrawBoxColor, depending on what you want to change.

TextDrawBackgroundColor serves as the outline, whilst TextDrawBoxColor is the inner box.

The colour code which you are using is assigned for black, change "0x00000000" to "0xFFFFFFFF" and this will change the background to white.


Re: TD Model background - adri[4]Life - 19.03.2017

Use This To Make it invisible TextDrawBackgroundColor(YMenuTD, 00);


Re: TD Model background - LStrike17 - 19.03.2017

Quote:
Originally Posted by LEOTorres
Посмотреть сообщение
Alter the values of TextDrawBackgroundColor and TextDrawBoxColor, depending on what you want to change.

TextDrawBackgroundColor serves as the outline, whilst TextDrawBoxColor is the inner box.

The colour code which you are using is assigned for black, change "0x00000000" to "0xFFFFFFFF" and this will change the background to white.
I want make it invisible

Quote:
Originally Posted by adrianlouise
Посмотреть сообщение
Use This To Make it invisible TextDrawBackgroundColor(YMenuTD, 00);
its still black...


Re: TD Model background - LEOTorres - 19.03.2017

Quote:
Originally Posted by LStrike17
Посмотреть сообщение
I want make it invisible
Use this colour "0xFFFFFF00"

Also, check out: https://sampwiki.blast.hk/wiki/Colors_List for an explanation of how colour transparency works.


Re: TD Model background - LStrike17 - 19.03.2017

Quote:
Originally Posted by LEOTorres
Посмотреть сообщение
Use this colour "0xFFFFFF00"

Also, check out: https://sampwiki.blast.hk/wiki/Colors_List for an explanation of how colour transparency works.
still background is black...

Код:
	TDInfo = TextDrawCreate(437.200042, 435.680023, "LD_SPAC:white");
	TextDrawLetterSize(TDInfo, 0.174797, 4.631999);
	TextDrawTextSize(TDInfo, -20.800035, 11.200028);
	TextDrawAlignment(TDInfo, 1);
	TextDrawColor(TDInfo, -1);
	TextDrawBackgroundColor(YMenuTD, 0xFFFFFF00 );
	TextDrawUseBox(TDInfo, true);
	TextDrawBoxColor(TDInfo, 0xFFFFFF00 );
	TextDrawSetShadow(TDInfo, 0);
	TextDrawSetOutline(TDInfo, 0);
	TextDrawFont(TDInfo, 5);
	TextDrawSetPreviewModel(TDInfo, 1239);
	TextDrawSetPreviewRot(TDInfo, 0.000000, 0.000000, 0.000000, 1.000000);



Re: TD Model background - LEOTorres - 19.03.2017

Is it your intention to use

Код:
TextDrawBackgroundColor(YMenuTD, 0xFFFFFF00 );
for another textdraw? If not, change the first value to TDInfo.


Re: TD Model background - LStrike17 - 19.03.2017

Quote:
Originally Posted by LEOTorres
Посмотреть сообщение
Is it your intention to use

Код:
TextDrawBackgroundColor(YMenuTD, 0xFFFFFF00 );
for another textdraw? If not, change the first value to TDInfo.
lol thanks... i'm so silly.. rep+