Clickable textdraws highlighting - 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: Clickable textdraws highlighting (
/showthread.php?tid=392041)
[SOLVED] Clickable textdraws highlighting -
Cell_ - 12.11.2012
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.
Re: Clickable textdraws highlighting -
NumbSkull - 12.11.2012
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
Re: Clickable textdraws highlighting -
Vince - 12.11.2012
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.
Re: Clickable textdraws highlighting -
Cell_ - 12.11.2012
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?