xXMADEXx Posted November 5, 2013 Share Posted November 5, 2013 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: Link to comment
Renkon Posted November 5, 2013 Share Posted November 5, 2013 Cause you created the dxText the other way around It should be LEFT TOP X, LEFT TOP Y, BOTTOM RIGHT X, BOTTOM RIGHT Y. BOTTON RIGHT at the end, not first Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now