SA-MP Forums Archive
TextDraw: Letter distance for box - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: TextDraw: Letter distance for box (/showthread.php?tid=101921)



TextDraw: Letter distance for box - Marshew_DD - 12.10.2009

Hi all, I have a problem. I can not make a textdraw the red square. I use Zamaroht's TextDraw Editor v0.6 but the problem is the TextDraw not grow down, I need a big box with no text to put other texts. I think it would take 2 texts. But as I make a box with no text in this ratio to below the image of Cops And Robber's. I use it because the server that the chat is very constant, would be a second box with the game information. Thanks for all!



[img width=1024 height=640]http://i.imagehost.org/0726/imagem.jpg[/img]








Re: TextDraw: Letter distance for box - Marshew_DD - 12.10.2009

UP


Re: TextDraw: Letter distance for box - Marshew_DD - 04.01.2010

Wait long time for an answer. I need to know how this textdraw was done so that I can make one like that. ( first img )


Thanks....


Re: TextDraw: Letter distance for box - Rac3r - 04.01.2010

I think the first box is made with no TextDrawAlignment, with the TextDrawTextSize set to about 200.000000 and 0.000000.
This should stop the box filling the screen.

Second text is no box and no TextDrawTextSize, but use TextDrawAlignment and set it to 2.



Re: TextDraw: Letter distance for box - Marshew_DD - 04.01.2010

Sure,

I tried to do what you told me, but failed


[img width=514 height=768]/imageshack/img694/1484/wowj.jpg[/img]

Code:
	Textdraw4 = TextDrawCreate(17.000000, 142.000000, "Routine Patrol Mission");
	TextDrawBackgroundColor(Textdraw4, 255);
	TextDrawFont(Textdraw4, 3);
	TextDrawLetterSize(Textdraw4, 0.519999, 1.200000);
	TextDrawColor(Textdraw4, -1);
	TextDrawSetOutline(Textdraw4, 0);
	TextDrawSetProportional(Textdraw4, 1);
	TextDrawUseBox(Textdraw4, 1);
	TextDrawBoxColor(Textdraw4, 255);
	TextDrawTextSize(Textdraw4, 222.000000, 0.000000);



Re: TextDraw: Letter distance for box - [HiC]TheKiller - 04.01.2010

Make a new Textdraw and just add spaces to it, then add the box to that.


Re: TextDraw: Letter distance for box - Marshew_DD - 04.01.2010

The objective is not to make another Cops and Robbers, but this model textdraw to reduce the sa-mp chat. The TextDraw is not that just want to know how to make a big box without text.


Thanks


Re: TextDraw: Letter distance for box - [HiC]TheKiller - 04.01.2010

Quote:
Originally Posted by Marshew_DD
The objective is not to make another Cops and Robbers, but this model textdraw to reduce the sa-mp chat. The TextDraw is not that just want to know how to make a big box without text.


Thanks
Quote:
Originally Posted by [HiC
TheKiller ]
Make a new Textdraw and just add spaces to it, then add the box to that.



Re: TextDraw: Letter distance for box - Marshew_DD - 04.01.2010

Quote:
Originally Posted by [HiC
TheKiller ]
Quote:
Originally Posted by Marshew_DD
The objective is not to make another Cops and Robbers, but this model textdraw to reduce the sa-mp chat. The TextDraw is not that just want to know how to make a big box without text.


Thanks
Quote:
Originally Posted by [HiC
TheKiller ]
Make a new Textdraw and just add spaces to it, then add the box to that.

Hun... i make this, but i need the distance between the text and the box, the sides as the top. how I do it?

Code:
Textdraw0 = TextDrawCreate(17.000000, 142.000000, "Routine Patrol Mission ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 3);
TextDrawLetterSize(Textdraw0, 0.519999, 1.200000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, 221.000000, 0.000000);
And:

[img width=479 height=768]/imageshack/img704/5471/wow2k.jpg[/img]



Thanks!


Re: TextDraw: Letter distance for box - Marshew_DD - 04.01.2010

I waiting long time.... thanks