SA-MP Forums Archive
Textdraw-Selectable-Color Issue - 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: Textdraw-Selectable-Color Issue (/showthread.php?tid=509671)



Textdraw-Selectable-Color Issue - Campbell- - 27.04.2014

Quick question I didn't find a solution for yet: I have three textdraws which are all selectable. But I only want one of these textdraws to change its color when I slide with my mouse over it. Is it possible?

Issue is here because I can only set one color for all textdraws:

pawn Код:
SelectTextDraw(playerid, color);



Re: Textdraw-Selectable-Color Issue - Vince - 27.04.2014

Only indirectly. For the ones you don't want the color to change you'll have to create an invisible overlay (box only, no text). It is this overlay which then needs to be made selectable, rather than the actual text.


Re: Textdraw-Selectable-Color Issue - Campbell- - 27.04.2014

Worked out fine, thanks.


Re: Textdraw-Selectable-Color Issue - Campbell- - 29.04.2014

I seem to have a follow-up question: I have a box, on this box I have a text. Now I want to have a box as a hover behind the text as soon as I move with my mouse over the area of the box. Is this possible?