Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Player's Screen Resolution/Aspect Ratio #24

Open
jacobcoughenour opened this issue Oct 25, 2017 · 2 comments
Open

Get Player's Screen Resolution/Aspect Ratio #24

jacobcoughenour opened this issue Oct 25, 2017 · 2 comments

Comments

@jacobcoughenour
Copy link

This is a small request, but could we get a way to retrieve the client's screen resolution or aspect ratio (width/height), maybe even their UI Scale setting?
Just having the client's aspect ratio would help in making cleaner CUI interfaces that are consistent and adapt properly across different resolutions and aspect ratios.

Here are some posts from oxidemod.org asking for this:
http://oxidemod.org/threads/getting-clients-screen-resolution.18428/
http://oxidemod.org/threads/checking-the-players-resolution.21254/
http://oxidemod.org/threads/adapt-cui-to-resolution.23584/
http://oxidemod.org/threads/getting-users-resolution.19236/

@bazuka5801
Copy link

This is a small request, but could we get a way to retrieve the client's screen resolution or aspect ratio (width/height), maybe even their UI Scale setting?
Just having the client's aspect ratio would help in making cleaner CUI interfaces that are consistent and adapt properly across different resolutions and aspect ratios.

Here are some posts from oxidemod.org asking for this:
http://oxidemod.org/threads/getting-clients-screen-resolution.18428/
http://oxidemod.org/threads/checking-the-players-resolution.21254/
http://oxidemod.org/threads/adapt-cui-to-resolution.23584/
http://oxidemod.org/threads/getting-users-resolution.19236/

Use offsets
See what i make with offsets, adaptive https://vk.com/rustycode?w=wall-146090202_365

@jamesalbert
Copy link

a little late to the party, but this thread shed some more light on it: https://umod.org/community/rust/39660-proper-cui-documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants