Jump to content

Problem with dx


papam77

Recommended Posts

And what about dxDrawText?

http://www.img.tpx.cz/uploads/relative.png

http://www.img.tpx.cz/uploads/relative2.png

  
local sX, sY = guiGetScreenSize() 
  
function design () 
showCursor ( true ) 
  
-- Header -- 
dxDrawRectangle ( 0, 0, sX/1, sY/20, tocolor ( 0, 125, 255, 255 ) ) 
dxDrawText("Sign In", sX/1.1, 0, sX/2, sY/2, tocolor(255, 255, 255, 255), 3.00, "default", "left", "top", false, false, true, false, false) 
end 
addEventHandler ("onClientRender", root, design ) 
  
  

It is not relative, but why? I mean the text scale

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