Textdraw Selection
#1

I've looked over my code several times and I can't find a reason as to why I can't select this textdraw. It doesn't turn yellow when I put my mouse over it but the 'close' button under it works.

pawn Код:
gPhoneEnterNum[2] = TextDrawCreate(533.000000, 362.000000, "1");
TextDrawBackgroundColor(gPhoneEnterNum[2], 255);
TextDrawFont(gPhoneEnterNum[2], 1);
TextDrawLetterSize(gPhoneEnterNum[2], 0.600000, 1.000000);
TextDrawColor(gPhoneEnterNum[2], -1);
TextDrawSetOutline(gPhoneEnterNum[2], 1);
TextDrawSetProportional(gPhoneEnterNum[2], 1);
TextDrawTextSize(gPhoneEnterNum[2], 100.000000, 20.000000);
TextDrawSetSelectable(gPhoneEnterNum[2], 1);
pawn Код:
gPhoneMain[11] = TextDrawCreate(571.000000, 421.000000, "~r~close");
TextDrawAlignment(gPhoneMain[11], 2);
TextDrawBackgroundColor(gPhoneMain[11], 255);
TextDrawFont(gPhoneMain[11], 2);
TextDrawLetterSize(gPhoneMain[11], 0.419999, 1.300000);
TextDrawColor(gPhoneMain[11], -1);
TextDrawSetOutline(gPhoneMain[11], 1);
TextDrawSetProportional(gPhoneMain[11], 1);
TextDrawUseBox(gPhoneMain[11], 1);
TextDrawBoxColor(gPhoneMain[11], 53);
TextDrawTextSize(gPhoneMain[11], 15.000000, 86.000000);
TextDrawSetSelectable(gPhoneMain[11], 1);
Reply
#2

i cant see it but make sure the 2 boxes around the TD's are not touching.
Reply
#3

They aren't touching. The numbers have no boxes by the way.
Reply
#4

Does OnPlayerClickTextDraw get called? Did you use SelectTextdraw()?
Reply
#5

No OnPlayerClickTextDraw does not get called and yes I know I called SelectTextDraw because the button below it is clickable.
Reply
#6

Take a look at my reply in your first topic
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)