SA-MP Forums Archive
[Include] TextDraw API! - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] TextDraw API! (/showthread.php?tid=455630)



TextDraw API! - RCON1 - 02.08.2013

(API does not support PlayerText)


Hi there.
I present here, the author's API to textdrawуw. In this way we can textdrawowi m.in retrieve information about a particular textdrawu or simply change its position.
Include, I started doing once, but someone had to do it and I gave up because I did not have internet and the free time I decided to finish the library.
The library has its wade in creating textdrawu (TextDrawCreate), Wade soon describe.
Cons:Advantages:As I have written the script has a lot of wade in creating that?
Currently TextDraw create *
Код:
 new Text: moj_td = TextDrawCreate (0.0, 0.0, "My TextDraw")
in my API has been changed. *
Код:
 new Text: moj_td;
TextDrawCreate (moj_td, 0.0, 0.0, "My TextDraw")
That is the function of creation (TextDrawCreate) is one option, and from now on we have to ID textdrawu give in it.
As already talked about the possibility of downloading any information about textdrawie
getTextDrawPosX (Text: TD_ID) *
Parameters:Returning: getTextDrawPosY (Text: TD_ID) *
Parameters:Returning: getTextDrawColor (Text: TD_ID) *
Parameters:Returning: getTextDrawBoxColor (Text: TD_ID) *
Parameters:Returning: getTextDrawBackgroundColor (Text: TD_ID)
Parameters:Returning: getTextDrawAlignment (Text: TD_ID) *
Parameters:Returning: getTextDrawFont (Text: TD_ID)
Parameters:Returning: getTextDrawLetterSizeX (Text: TD_ID)
Parameters:Returning: getTextDrawLetterSizeY (Text: TD_ID)
Parameters:Returning: getTextDrawTextSizeX (Text: TD_ID) *
Parameters:Returning: getTextDrawTextSizeY (Text: TD_ID)
Parameters:Returning: getTextDrawOutline (Text: TD_ID) *
Parameters:Returning: getTextDrawShadow (Text: TD_ID)
Parameters:Returning: getTextDrawProportional (Text: TD_ID) *
Parameters:Returning: getTextDrawUseBox (Text: TD_ID)
Parameters:Returning:I mentioned about the possibility of changing the position textdrawu - so it never been easier.
Słуży to the TextDrawSetPos
TextDrawSetPos (Text: inc_TextDraw_, Float: posx, Float: posy)
Parameters:Returning:API by me, but do not have anywhere to mention this, but it would be nice if someone did not issue this somewhere amended by!
*
For a small elite hejterуw, Appreciate it had put open soruce code, written specifically for Pawno and before you start I hejtować (or stain on) You think about it as if you wrote the API.
*
As I mentioned at the beginning of the API does not support PlayerText, so if you have the proper capacity, and you want to add support for drawing on my code - you're welcome .
*
Have a good time and I think someone useful API.
Download [attachment = 340: textdraw_api.zip]
I would add that in filterscripts folder is a sample script to use the API.

Original topic http://pawno.pl/index.php?/topic/190...-textdraw-api/


Download
http://p4serv.pl/textdraw_api.zip


Re: TextDraw API! - RajatPawar - 02.08.2013

If this (TextDrawSetPos) works, this is fantastic! But what was the need of assigning IDs? That makes it easier to screw up (like with dialogs)


Re: TextDraw API! - RCON1 - 02.08.2013

Rajat_Pawar, filterscripts folder you have a sample script to use TextDraw API In-Game use / SETPOS [speed] (eg / SETPOS 30 (fine)).

Sorry, I forgot about download

Download
http://p4serv.pl/textdraw_api.zip


Re: TextDraw API! - Unknown1234 - 04.08.2013

this isnt vb where getInputData ... bhaaa ... i suggest for Get for caps like ******..

nice work