Jump to content

What is wrong with dxDrawText text alignment?


xXMADEXx

Recommended Posts

Hello everyone. I have just found what looks like a bug but I could be wrong... For some reason when I use dxDrawText, the text alignment (Left/Center/Right/Top/Bottom) seems to be off. If I put it to "right" it goes to the left of the screen.. If I put it to "center" it goes to the center of the screen, and if I put it to "left" it goes to where it is being created. Any solutions?

Code:

dxDrawRectangle ( sx-280, data.dd.y, 250, 132, tocolor ( 0, 0, 0, 200 ), true ) 
        dxDrawLinedRectangle ( sx-280, data.dd.y, 250, 132, tocolor ( 255, 255, 255, 200 ), 1, true ) 
        dxDrawText ( "Click to play the\n'DD' Gamemode!", sx - 260, data.dd.y + 20, 250, 132, tocolor ( 255, 255, 255, 255 ), 1.3, 'default', 'left', 'top', false, false, true ) 

Screens:

hqz4.png

l81o.png

jspm.png

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...