Textdraw Selection
#10

Quote:
Originally Posted by IceCube!
Посмотреть сообщение
From this point onwards I refuse to reply to help in this section!, THis shouldn't be in the 0.3e Forum it should be in Normal Scripting discussion. FYI I reported this post.


Shut up about your 'wrong section' and just help the guy already. Right now you're just being a hypocrite.



OT: The close button does not change colour because of the ~r~ in the textdraw, making it permanent red (You can, however, just get the RGBA code of it and use it in TextDrawColor)

The other button requires a bit more explanation: You need to use TextDrawTextSize with the second parameter as created_x_position + x_offset.

Your code was:
pawn Код:
gPhoneEnterNum[2] = TextDrawCreate(533.000000, 362.000000, "1");
TextDrawTextSize(gPhoneEnterNum[2], 100.000000, 20.000000);
It should be:
pawn Код:
gPhoneEnterNum[2] = TextDrawCreate(533.000000, 362.000000, "1");
TextDrawTextSize(gPhoneEnterNum[2], 533.0 + 100.0, 20.000000);
Which should work. I do recommend changing the offset (+ 100.0) to something smaller like 17.0 (Which I used in testing it on my localhost, and worked great ).

Working with textdraws (and especially selectable ones) is a lot of trial and error work ^^.
Reply


Messages In This Thread
Textdraw Selection - by SuperViper - 19.05.2012, 20:59
Re: Textdraw Selection - by IceCube! - 19.05.2012, 21:02
Re: Textdraw Selection - by SuperViper - 19.05.2012, 21:04
Re: Textdraw Selection - by IceCube! - 19.05.2012, 21:29
Re: Textdraw Selection - by SuperViper - 19.05.2012, 21:34
Re: Textdraw Selection - by IceCube! - 19.05.2012, 21:47
Re: Textdraw Selection - by SuperViper - 19.05.2012, 21:54
Re: Textdraw Selection - by IceCube! - 19.05.2012, 21:55
Re: Textdraw Selection - by MP2 - 19.05.2012, 22:45
Re: Textdraw Selection - by Hiddos - 20.05.2012, 08:45

Forum Jump:


Users browsing this thread: 4 Guest(s)