Textdraw is highlighting -
CrazyChoco - 18.01.2015
Hello fellow members,
I have researched around, but I can't find the proper fix for this issue.
I use the selectable textdraws, but when I select like the second one this first one is getting highlighting too, even when it's not supposed to.
Some people say i need to create an invisible box, but what exactly is that supposed to mean?
Re: Textdraw is highlighting -
vassilis - 18.01.2015
https://sampforum.blast.hk/showthread.php?tid=557459
Re: Textdraw is highlighting -
Schneider - 18.01.2015
Yes, you can create an invisible box by setting the color at 0.
also make sure the textdrawsize is set correct, make sure none of the x or y sizes are 0
Re: Textdraw is highlighting -
CrazyChoco - 18.01.2015
So will this code be correct:
pawn Код:
Textdraws[playerid][25] = TextDrawCreate(141.347213, 308.183746, "Russia");
TextDrawLetterSize(Textdraws[playerid][25], 0.296279, 1.599997);
TextDrawAlignment(Textdraws[playerid][25], 2);
TextDrawColor(Textdraws[playerid][25], -1);
TextDrawSetShadow(Textdraws[playerid][25], 0);
TextDrawSetOutline(Textdraws[playerid][25], 1);
TextDrawBackgroundColor(Textdraws[playerid][25], 51);
TextDrawFont(Textdraws[playerid][25], 2);
TextDrawSetProportional(Textdraws[playerid][25], 1);
TextDrawSetSelectable(Textdraws[playerid][25], true);
TextDrawUseBox(Textdraws[playerid][25], 1); //The box
TextDrawTextSize(Textdraws[playerid][25], 141.347213, 308.183746); //This
TextDrawBoxColor(Textdraws[playerid][25], 0); //That
Re: Textdraw is highlighting -
vassilis - 18.01.2015
i guess
Re: Textdraw is highlighting -
CrazyChoco - 18.01.2015
I don't know, it doesn't seem to be working correctly
Re: Textdraw is highlighting -
CrazyChoco - 19.01.2015
Help?
Re: Textdraw is highlighting -
Threshold - 19.01.2015
If it is not working after using boxes, then you have the wrong size of box. Try to change the color of the box to something visible, so you can see what you're working with. Then once you have found the correct size, change the color back to invisible.
It took me like a whole hour to find a good size for Vassilis' textdraws, but then again, I had to make my own code to change the color of the box and change the size of the box which was inclusive of at least 20 minutes.
Or you could use iPleoMax's textdraw editor.