SA-MP Forums Archive
Some questions about Textdraws... - 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: Some questions about Textdraws... (/showthread.php?tid=529492)



Some questions about Textdraws... - Drago987 - 02.08.2014

Hello...So I've been wondering about how can I Make a large textdraw like this:

Or a small one like this:

I Just want to know how to adjust their sizes and the background color.


Re: Some questions about Textdraws... - nilanjay - 02.08.2014

pawn Код:
TextDrawTextSize(Text:text, Float:x, Float:y)
You can read more about it here:https://sampwiki.blast.hk/wiki/TextDrawTextSize


Re: Some questions about Textdraws... - Vince - 02.08.2014

For an empty box, use an underscore for text. Use the BoxSize native to adjust the width. Use the LetterSize native to adjust the height. Alternatively, you can use a small square sprite in combination with TextSize, like so:

pawn Код:
textdraw0 = TextDrawCreate(320.0, 320.0, "LD_BUM:blkdot");
TextDrawFont(textdraw0 , 4);
TextDrawColor(textdraw0, 0x00000066);
TextDrawTextSize(textdraw0, 20.0, 20.0);
The disadvantage for this method is that you're limited to 100 sprites only.


Re: Some questions about Textdraws... - Drago987 - 02.08.2014

Quote:
Originally Posted by Vince
Посмотреть сообщение
For an empty box, use an underscore for text. Use the BoxSize native to adjust the width. Use the LetterSize native to adjust the height. Alternatively, you can use a small square sprite in combination with TextSize, like so:

pawn Код:
textdraw0 = TextDrawCreate(320.0, 320.0, "LD_BUM:blkdot");
TextDrawFont(textdraw0 , 4);
TextDrawColor(textdraw0, 0x00000066);
TextDrawTextSize(textdraw0, 20.0, 20.0);
The disadvantage for this method is that you're limited to 100 sprites only.
Could You explain a bit more?