Jump to content

dxDrawText Rotation


.:HyPeX:.

Recommended Posts

Well, i give up, simply dont get it.

frotation takes the text to hell knows what, and i cant simply get it right. (Dont really get how it is supposed to work if i want text to be vertical from bottom to top of the screen, 270 rot.)

frotationcenterX does nothing.

frotationCenterY does nothing.

Can someone help me out? :/

Link to comment

I also would like to know more I think you should use shader

I noticed that this does not work: float rotationCenterOffsetX = 0, float rotationCenterOffsetY = 0,

bool dxDrawImage ( float posX, float posY, float width, float height, mixed image [, float rotation = 0, float rotationCenterOffsetX = 0, 
float rotationCenterOffsetY = 0, int color = tocolor(255,255,255), bool postGUI = false ] )

Link to comment

I found myself it does have an effect over original rotation. My positions worked like this, but its still weird.

        for i=1, 4 do 
            local a = "Text"..i 
        dxDrawText(Dashboard.Positions.Text[a][1] , Dashboard.Positions.Text[a][2] * x, Dashboard.Positions.Text[a][3] * y, Dashboard.Positions.Text[a][4] * x, Dashboard.Positions.Text[a][5] * y, tocolor(255,255,255,alpha),3,"clear","left", "top", true, false,true, true, true, 270, x*0.05 + ((x*0.2) * i), y*0.85)   
        end 

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...