textdrawtextsize - Clickable textdraws.
#1

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 ?
Reply
#2

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.
Reply
#3

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.
Reply
#4

You didn't set a Y value which is the height of the clickable area it is 0.0.
Reply
#5

thanks bro! working fine
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)