textdrawtextsize - Clickable 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: textdrawtextsize - Clickable textdraws. (
/showthread.php?tid=530838)
textdrawtextsize - Clickable textdraws. -
Champ - 09.08.2014
I create some clickable textdraw and are working. but the problem is that when i am click some where else for example beneath that textdraw. it is also performing the action. and the other problem is Hover. The color also changes even when i don't hover at exact place.
I read somewhere in sa-mp that textdrawtextsize can make it perfect. But when i added textdrawtextsize which i prepared from In-Game Textdraw editor. It stopped working. Can any body tell me how to use
textdrawtextsize ?
Re: textdrawtextsize - Clickable textdraws. -
Pottus - 09.08.2014
Just visually set box size usually I use black set the X Position first then you will need to guess your Y height usually 8 - 12 is a good range for most text test it and tune it. Once that is set then if I'm not using the box I will set the color to be invisible.
Re: textdrawtextsize - Clickable textdraws. -
Champ - 09.08.2014
ok, this is the textdraw which i created from a textdraw editor.
pawn Код:
cLeft = TextDrawCreate(237.000000, 390.000000, "<<");
and i also created a box and copied its textdrawtextsize but removed usebox line.
pawn Код:
TextDrawTextSize(cLeft, 257.000000, 0.000000);
and there is no alignment. I don't understand why it stoped working.
Re: textdrawtextsize - Clickable textdraws. -
Pottus - 09.08.2014
You didn't set a Y value which is the height of the clickable area it is 0.0.
Re: textdrawtextsize - Clickable textdraws. -
Champ - 09.08.2014
thanks bro! working fine