SA-MP Forums Archive
TextDraws Problems On Hovering Color - 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: TextDraws Problems On Hovering Color (/showthread.php?tid=409408)



TextDraws Problems On Hovering Color - ReDevilGames - 21.01.2013

Look at these screenshots:

As you can see, when I move the mouse on a textdraw, it turns gray. Now, when I move the mouse below a selectable textdraw, it remains gray, until I move the mouse above this last. Why? I have always the same problem when I try to make a clickable textdraw.

This is the way I use to create textdraws:
pawn Код:
Skills1 = TextDrawCreate(320,240,"Rapinatore Di Auto");
TextDrawAlignment(Skills1,2);
TextDrawBackgroundColor(Skills1,0x000000FF);
TextDrawFont(Skills1,1);
TextDrawLetterSize(Skills1,0.3,1.5);
TextDrawColor(Skills1,0xFFFFFFFF);
TextDrawSetOutline(Skills1,1);
TextDrawSetProportional(Skills1,true);
TextDrawSetShadow(Skills1,1);
Instead, this is that I use to make clickable them:
pawn Код:
TextDrawSetSelectable(Skills1,1);
TextDrawShowForPlayer(playerid,Skills1);
SelectTextDraw(playerid,0xC0C0C0FF);
All works fine, I would say wonderfully: but this color problem is really annoying!!!
So, where is the problem?


Re: TextDraws Problems On Hovering Color - DaRk_RaiN - 21.01.2013

You can control the selectable area via TextDrawTextSize but you have to it manually (change the x and y till it fits)


Re: TextDraws Problems On Hovering Color - ReDevilGames - 21.01.2013

Thanks so much
Rep +1