Bug at clickable textdraws.
#1

Hello.

I made 4 clickable textdraws for my personal vehicle system, and when I wanted to test it, I want for exemple to click on "Previous >" and watch what happens:


Other photos:

When I wanted to click on "Buy Car" ^.


Here, I wanted to click on "Test Drive" ^.

Some ideas for the reason of this bug happens? Thanks.
Reply
#2

It has to do with the creation of those textdraws and of course their text size (TextDrawTextSize).
Reply
#3

And what can I do to solve that bug? I tried to re-create that textdraws but, still have the bug.
Reply
#4

For clickeable textdraw need to use TextDrawTextSize and TextDrawAligment 2. Aligment 2 (centered).
Example:
Код:
new td = CreateTextDraw(x,y,"Test");
TextDrawAligment(td,2);
TextDrawTextSize(td,5,10);  //For alignment 2 (center) the x and y values need to inverted
TextDrawSetSelectable(td,1);
Bye (:
Reply
#5

@adri1, it doesn't helped me very much, it's still that bug there, like in images, but now i can select only "TEST DRIVE" TD button
Reply
#6

@adri1 i have made many on alignment 1 but @ edvin make sure none of them have boxes and do what adri1 said make sure TextDrawTextSize is big enough but not too big for your td
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)