Clickable textdraws highlighting
#1

I am having problems with the clickable textdraws. As you can see in the images below, when intending to select a textdraw, all the textdraws above that textdraw get highlighted with the very textdraw. No, nothing with the script, I have tried doing this with different fonts, sizes, positions but none worked. Can anyone tell me what am I doing wrong?



Wanting to select A3.



Wanting to select the last textdraw.



The only one that works fine.

* Code removed.

Any help will be highly appreciated.

EDIT: Thanks to the reply from Vince, all I did was was create an invisible box behind every clickable textdraw and it worked fine. You have to do some fixing though. TextDrawTextSize is all you need.
Reply
#2

it is the way samp made it ...it selects like you are selecting text from the top down ...i cant find a way to fix it it only returns the top textdraw being clicked so i never use it unless it is only 1 text draw to pick from
Reply
#3

Clickable area is defined by TextDrawTextSize. My advice is to create a box behind the items. You can set the color of the box to an invisible one.
Reply
#4

I am using a box behind them but interestingly it didn't load while I was taking images. I am using 2 loops, 1 to show all the random textdraws and 2 to show the selectable textdraws.

Edit: Can somebody please explain TextDrawTextSize to me? I can't seem to understand the wiki post. Also, can I use box size coordinates for TextDrawTextSize?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)