Jump to content

Wrong Calculing


Snow-Man

Recommended Posts

Posted
sizeX, sizeY = guiGetScreenSize() 
rsx, rsy = sizeX/1280, sizeY/1024 -- Max Resolution 
  
dxDrawRectangle(rsx*484, rsy*493, rsx*125, rsy*32, tocolor(0, 0, 0, 150), true) 
dxDrawText("  Login", rsx*484, rsy*493, rsy*561, rsy*446, tocolor(255, 255, 255, 255), 0.80, myFont, "left", "top", false, false, true, false, false) 

when i use that, it work fine but when i change resolution i see positions of dx has been changed :(

USC Informations

Head Staff & Owner Of USC.

Youtube Channel : My Channel

350x20_FFFFFF_FFFFFF_A89999_080404.png

 

  • Moderators
Posted

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

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