SA-MP Forums Archive
Clickable textdraw - 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: Clickable textdraw (/showthread.php?tid=411620)



Clickable textdraw - rVar - 29.01.2013

// bla blaaaa, delete


Re: Clickable textdraw - IstuntmanI - 29.01.2013

Try playing around with TextDrawTextSize when you create the textdraws, it is an area in which you can click (like a box).

Try
pawn Код:
TextDrawTextSize( textdrawid, 16.0, 16.0 );
then play around with the numbers until it's fine.


Re: Clickable textdraw - Jewell - 30.01.2013

Dude, i had the same problem with my login screen.
read here https://sampwiki.blast.hk/wiki/TextDrawTextSize - TextDrawTextSize

IF you are using a ingame text editor.. it easy get TextDrawTextSize x ,y axis..

turn on TextDrawUseBox first, text select place it.. and get the x ,y axis.. to TextDrawTextSize


Re: Clickable textdraw - MP2 - 30.01.2013

The Y value doesn't affect anything visually, so it's guess work, but you can get the X size with the TD editor. Another tip is to use a SPRITE, as both the x AND y value will change the size of the sprite - showing you your clickable area.