TextDraw Hover all Textdraws?? - 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: TextDraw Hover all Textdraws?? (
/showthread.php?tid=343719)
TextDraw Hover all Textdraws?? -
Admigo - 18.05.2012
Heey all,
I have a SelectTextDraw Problem.
I made menu to choose your team but when i Select on text 2 it selects text 1 to and when i select text 3 its selects text 1 and 2.
Example:
Код:
---//this is colored
---//this is colored
---//i select this:this is colored
---
---
---
How can i fix this?
Thanks Admigo
Re: TextDraw Hover all Textdraws?? -
MP2 - 18.05.2012
Make the text area smaller with (Player)TextDrawTextSize.
Re: TextDraw Hover all Textdraws?? -
Admigo - 18.05.2012
Can you give a example with my 2 textdraws?
Код:
TextDraw3= TextDrawCreate(240.0, 161.0, "(1) EUROPE : 0");//161
TextDrawColor(TextDraw3,0xFFFF00AA);
TextDrawFont(TextDraw3, 1);
TextDrawTextSize(TextDraw3,400.000000, 400.000000);//510
TextDrawLetterSize(TextDraw3,0.50,1.500000);//0.5
TextDrawSetShadow(TextDraw3, 0);
TextDrawSetOutline(TextDraw3,1);
//TextDrawAlignment(TextDraw3,2);
TextDraw4= TextDrawCreate(240.0, 175.0, "(2) USA : 0");//175
TextDrawColor(TextDraw4,0x33CCFFAA);
TextDrawFont(TextDraw4, 1);
TextDrawTextSize(TextDraw4,400.000000, 400.000000);//510
TextDrawLetterSize(TextDraw4,0.5,1.500000);//0.8
TextDrawSetShadow(TextDraw4, 0);
TextDrawSetOutline(TextDraw4,1);
//TextDrawAlignment(TextDraw4,2);
Re: TextDraw Hover all Textdraws?? -
Extremo - 19.05.2012
Quote:
Originally Posted by admigo
Can you give a example with my 2 textdraws?
Код:
TextDraw3= TextDrawCreate(240.0, 161.0, "(1) EUROPE : 0");//161
TextDrawColor(TextDraw3,0xFFFF00AA);
TextDrawFont(TextDraw3, 1);
TextDrawTextSize(TextDraw3,400.000000, 400.000000);//510
TextDrawLetterSize(TextDraw3,0.50,1.500000);//0.5
TextDrawSetShadow(TextDraw3, 0);
TextDrawSetOutline(TextDraw3,1);
//TextDrawAlignment(TextDraw3,2);
TextDraw4= TextDrawCreate(240.0, 175.0, "(2) USA : 0");//175
TextDrawColor(TextDraw4,0x33CCFFAA);
TextDrawFont(TextDraw4, 1);
TextDrawTextSize(TextDraw4,400.000000, 400.000000);//510
TextDrawLetterSize(TextDraw4,0.5,1.500000);//0.8
TextDrawSetShadow(TextDraw4, 0);
TextDrawSetOutline(TextDraw4,1);
//TextDrawAlignment(TextDraw4,2);
|
Try enabling
TextDrawUseBox and see for yourself if they overlap each other! The box of each textdraw is the clickable area of the said textdraw. You might not be able to see which box is what so maybe even give each box a different color.
TextDrawBoxColor.
Currently your clickable area is 400x400 for each of your textdraws.
Re: TextDraw Hover all Textdraws?? -
Admigo - 19.05.2012
U know a good size that works?
Re: TextDraw Hover all Textdraws?? -
Tee - 21.05.2012
Try, 10.0, 10.0. It might not work for you though but it's worth a shot.
Re: TextDraw Hover all Textdraws?? -
Faisal_khan - 24.05.2012
Same problem with me. Any solutions?