Jump to content

Positioning stuff in screens


'LinKin

Recommended Posts

Hello,

I wonder how can I place the things correctly for ALL resolutions.

For example if I want a rectangle image to show right on top-right side of the client screen, for absolutely every resolution. How can I do that?

Maybe making divisions of the screen?

local screenWidth, screenHeight = guiGetScreenSize ( )

myX = screenWidth/ 6 ?

OR

If I have the size of the image, for example 500x300

I'd do something like;

myX = screenWidth - 500

myY = 0

Thanks

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