Tweaking textdraws.
#1

I have been tweaking around with my clickable textdraws to get the hovering working properly for quite a while now. I can't seem to get it fixed correctly. I would appreciate it if someone would help me with this. Right now the textdraws are completely unclickable.

pawn Код:
Startup6 = TextDrawCreate(178.000000, 201.000000, "Account");
    TextDrawBackgroundColor(Startup6, 255);
    TextDrawFont(Startup6, 3);
    TextDrawLetterSize(Startup6, 0.879998, 2.499999);
    TextDrawColor(Startup6, -1);
    TextDrawSetOutline(Startup6, 1);
    TextDrawSetProportional(Startup6, 1);
    TextDrawTextSize(Startup6, 190.000000, 0.000000); // Needs tweaking
    TextDrawSetSelectable(Startup6, 1);
   
    Startup7 = TextDrawCreate(325.000000, 201.000000, "Register");
    TextDrawBackgroundColor(Startup7, 255);
    TextDrawFont(Startup7, 3);
    TextDrawLetterSize(Startup7, 0.879998, 2.499999);
    TextDrawColor(Startup7, -1);
    TextDrawSetOutline(Startup7, 1);
    TextDrawSetProportional(Startup7, 1);
    TextDrawTextSize(Startup7, 350.000000, 0.000000); // Needs tweaking
    TextDrawSetSelectable(Startup7, 1);
Reply
#2

pawn Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)

TextDrawSetSelectable(Textdraw, true);
Reply
#3

Did you read what I wrote. I think you misunderstood me.

When you're hovering over a clickable textdraw it doesn't hover properly. Say my cursor is hovering over 'Account' once I'm hovering over 'Account' the color changes to blue for example but it also changes the 'Register' textdraw to blue and I am not even hovering over it.

I saw on a thread you need to tweak with TextSize for this problem but I am still stuck.
Reply
#4

Anyone?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)