SA-MP Forums Archive
Highlighting 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: Highlighting textdraws. (/showthread.php?tid=568948)



Highlighting textdraws. - HY - 26.03.2015

Hello!

For example, I have five textdraws. TextDrawCreate, Selectable (............) show for player. Let's suppose those textdraws are green color. I use function to set player ability to select a textdraw. (SelectTextDraw(playerid, 0xFFFFFFFF); --> white. But, if I move my cursor on textdraws, then all gets highlighted.

My question is: Is any way to remove that highlight, or maybe highlight only selected textdraw?
I've been searching for an half an hour, but I couldn't find something wich can help me!

+Rep.


Re: Highlighting textdraws. - Aly - 26.03.2015

It's all about the "TextDrawTextSize" you have to reduce it, but pay attention so you don't have a negative value.


Re: Highlighting textdraws. - HY - 26.03.2015

Don't have that in my Texdraw code.
I created Textdraws with iPLEOMAX's Texdraw Editor.

What's the proper TextDrawTextSize? I've tried with 5, 5, but lol, if I put, all my Textdraws aren't workin', and nothing happens when I press on them.

Anyway; +rep.


Re: Highlighting textdraws. - Pottus - 26.03.2015

That textdraw editor is old the new on by adri1 is much better https://sampforum.blast.hk/showthread.php?tid=543002