SA-MP Forums Archive
TextDraw Coords (Help) - 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 Coords (Help) (/showthread.php?tid=146917)



TextDraw Coords (Help) - Jay. - 09.05.2010

Hey, Erm i need the textdraw coords of this black box in the middle of the screen

I'm rly not good with coords, So please go easy on me


If u know please reply, Thanks








Re: TextDraw Coords - Babul - 09.05.2010

the frame of each textdraw is 640x480. if you want that box 1/2 size of horizontal/vertcal size, then its the coords:
640/4= 160 and 480/4=120
if you want it slightly smaller, like your picture, it could be 1/3 at x and y axis: around 640/3 = 210, the width depends on the string lenght you define to display...
in short: you only need 2 coords for the top-left spot. 160,120 is good to start with i guess ^^
Код:
0,0       320,0      640,0
+---------------+---------------+
l   l
+------+160,120- - - - +
l   l textdraw box l
l   l ...      l
l   l ...      l
l   + - - - - - - - +
l
+---------------+---------------+
0,480      320,480     640,480



Re: TextDraw Coords - Jay. - 09.05.2010

Quote:
Originally Posted by Babul
the frame of each textdraw is 640x480. if you want that box 1/2 size of horizontal/vertcal size, then its the coords:
640/4= 160 and 480/4=120
if you want it slightly smaller, like your picture, it could be 1/3 at x and y axis: around 640/3 = 210, the width depends on the string lenght you define to display...
in short: you only need 2 coords for the top-left spot. 160,120 is good to start with i guess ^^
Код:
0,0       320,0      640,0
+---------------+---------------+
l   l
+------+160,120- - - - +
l   l textdraw box l
l   l ...      l
l   l ...      l
l   + - - - - - - - +
l
+---------------+---------------+
0,480      320,480     640,480

Thank you very much, But i don't realy understand

I just want the coords for right in the middle of the screen, I don't want it the exact size.


Re: TextDraw Coords (Help) - Babul - 09.05.2010

simply try 160,120 or 200,120


Re: TextDraw Coords (Help) - MWF2 - 09.05.2010

Simply use the textdraw filterscripts. Helped me a lot!


Re: TextDraw Coords (Help) - Jay. - 09.05.2010

Quote:
Originally Posted by Babul
simply try 160,120 or 200,120
Ok are give it a try and, reply if they work.


Re: TextDraw Coords (Help) - Jay. - 09.05.2010

Ok so i tryed 200,120 and it is the exact postion i want but.

The box is to long, it goes out of the right hand screen


Any help?


Pic






Re: TextDraw Coords (Help) - Babul - 10.05.2010

thats a too long string. shorten it to maybe [14] maximum.