Clickable Textdraws selection problem - 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 selection problem (
/showthread.php?tid=332230)
Clickable Textdraws selection problem -
Jack Shred - 07.04.2012
Hello there.
I made a little IG admin panel using clickable textdraws.
I have a problem though! When I put my mouse somewhere, it'll select all textdraws above the textdraw that should be selected.
Screenshot:
Does anyone know what the problem could be?
Re: Clickable Textdraws selection problem -
Manuel_P - 07.04.2012
Use TextDrawTextSize for every textdraw. I'd suggest you remake the menu and give every textdraw a centered alignment. Judging from the size of your textdraws, I think TextDrawTextSize(textdrawid, 8, 20) will be good.
Re: Clickable Textdraws selection problem -
Jack Shred - 07.04.2012
This is for example the fine textdraw:
pawn Код:
Textdraw16 = TextDrawCreate(585.000000, 401.000000, "Fine");
TextDrawBackgroundColor(Textdraw16, 255);
TextDrawFont(Textdraw16, 1);
TextDrawLetterSize(Textdraw16, 0.500000, 2.000000);
TextDrawColor(Textdraw16, -1);
TextDrawSetOutline(Textdraw16, 0);
TextDrawSetProportional(Textdraw16, 1);
TextDrawSetShadow(Textdraw16, 1);
TextDrawSetSelectable(Textdraw16, 1);
How do I use the TextDrawTextSize function in there?