Question about Textdraw
#1

Hello, I've a Textdraw with text in and also a box but sometimes is the box too small :S I want that the box with the textdraw increased and reduced anybody an idea how to do that??
Reply
#2

strlen.
I don't know much about textdraw.
It maybe can set box size by strlen
Or don't use box
Reply
#3

Quote:
Originally Posted by yezizhu
strlen.
I don't know much about textdraw.
It maybe can set box size by strlen
Or don't use box
If you know a bit about strlen can you explain or explain better how please ?? No using boxes is a fact but I want boxes

*
Anybody else idea's or plan's, how to do that?
Reply
#4


new
str[] = "blsblabla",
len = strlen(str);
TextDrawTextSize(text,2*len,2);

Just an example.
Reply
#5

That's not quite how it works. You have to use TextDrawTextSize to change the size of the box, I'm assuming you're using TextDrawAlignment because otherwise it would just make that entire row boxed in.
Reply
#6

Still not understaned Can you give an example please??
Reply
#7

pawn Код:
TextDrawTextSize(mytextdraw,50.0,0.0);
For one reason or another, the 'Y' (or height) parameter makes no change regardless of what you put in it. You would change the '50.0' number with what you need, it will take trial and error to find exactly what you need.
Reply
#8

Quote:
Originally Posted by Joe Staff
pawn Код:
TextDrawTextSize(mytextdraw,50.0,0.0);
For one reason or another, the 'Y' (or height) parameter makes no change regardless of what you put in it. You would change the '50.0' number with what you need, it will take trial and error to find exactly what you need.
Okйy thank you, I'll try to do..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)