SA-MP Forums Archive
Clickable Textdraw 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)
+--- Thread: Clickable Textdraw help! (/showthread.php?tid=458751)



Clickable Textdraw help! - arjanforgames - 18.08.2013

I've got a row with textdraws like:
(Textdraws are seperated ofcourse)

a b c d

When I hover over a it becomes:

a b c d

When I hover over b it becomes:

a b c d

c:

a b c d

and over d:

a b c d

How can I fix this?


Re: Clickable Textdraw help! - Edix - 18.08.2013

I think you will need to re-set the color of the other textdraw once they hover over one of them.
Mind showing part of that script where it changes the colors when hovering over it?


Re: Clickable Textdraw help! - arjanforgames - 18.08.2013

I simply:
Show all textdraws and at the end I have:
pawn Код:
SelectTextDraw(playerid, COLOR_RED);



Re: Clickable Textdraw help! - Edix - 18.08.2013

Quote:
Originally Posted by arjanforgames
Посмотреть сообщение
I simply:
Show all textdraws and at the end I have:
pawn Код:
SelectTextDraw(playerid, COLOR_RED);
Strange -.. How about you try using CancelSelectTextDraw on the OnPlayerClickTextDraw callback.


Re: Clickable Textdraw help! - arjanforgames - 18.08.2013

Didnt work.


Re: Clickable Textdraw help! - Edix - 18.08.2013

Quote:
Originally Posted by arjanforgames
Посмотреть сообщение
Didnt work.
Then im sorry I cant really help you out :/.

I've noticed that on the video in this topic he has the same thing so maybe its a problem in samp or something.
https://sampforum.blast.hk/showthread.php?tid=328267

try having a bigger space between the textdraws maybe?


Re: Clickable Textdraw help! - arjanforgames - 18.08.2013

Will try,
Thanks for helping me out


Re: Clickable Textdraw help! - InfiniTy. - 18.08.2013

You need to °play around° with TextDrawTextSize until you get the right values.