TextDraw: Problem with alignment..
#1

Hi,

I need to do a TextDraw with a box, that will be like this for example:
Код:
 +-------------------------+
 |        blablabla|
 +-------------------------+

 //or

         +-------------------------+
         |          hello|
         +-------------------------+
(with text always aligned to the right)

But when i use TextDrawAlignment 3, the TextDrawBox start X is always 0 so i get something like that:
Код:
----------------------------+
         blablabla|
----------------------------+

//or

---------------------------------------------+
                    hello|
---------------------------------------------+
start Y, and Width, are ok, only the start X don't want to start where i want


Someone know how to fix this damn problem?

Reply
#2

http://forum.sa-mp.com/index.php?topic=29132.0
Reply
#3

I don't need a textdraw editor, i have mine already.
Reply
#4

Try to make it as 6.
Reply
#5

Quote:
Originally Posted by MenaceX^
Try to make it as 6.
What 'it' ?


Can someone help please :/ Is it even possible (with only 1 textdraw of course)?
Reply
#6

Quote:
Originally Posted by yom
Quote:
Originally Posted by MenaceX^
Try to make it as 6.
What 'it' ?


Can someone help please :/ Is it even possible (with only 1 textdraw of course)?
1 textdraw and two boxes? no, i dont think so.
Reply
#7

Quote:
Originally Posted by [1337
MaVe ]
1 textdraw and two boxes? no, i dont think so.
No you didn't get me, i mean, i want to use only 1 textdraw for the box and the text aligned to it's right.

What i want to do is obviously possible with 2 textdraws: 1 for the box, and 1 for the text.
Reply
#8

Quote:
Originally Posted by yom
Quote:
Originally Posted by MenaceX^
Try to make it as 6.
What 'it' ?


Can someone help please :/ Is it even possible (with only 1 textdraw of course)?
The aligment, just change it's number to check if it's move...
Maybe it has bug or something. Just make it highter number to check if it move.
Reply
#9

So I'm presuming the only resolution is to use two textdraws to fake the appearance then?

0rb?
Reply
#10

Yes theres a number of weird behaviours with textdraws. Are they bugs or just the way they work in gta, i don't know.

Another weird thing is that calling TextDrawTextSize also messes up the coords if you use the default left alignment.

This can be tested by creating a textdraw in the middle-right part of the screen and then set the X size with TextDrawTextSize. Then this textdraw will move to the left on the screen which it should not.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)