Automatically getting the X coordinates of a screen?
As the title states, how would I be able to get the X coordinates of a screen? (When it resizes?)
Ex: when I am at the login screen, my Screensize is 1366x768 (Black bars at both sides, so my screen is affected).
but when I am in game, my screensize goes back to my default, 1600x900. I would like to be able to get the X coordinate when the screen resizes so that I when I a draw a box using DrawBox, it'll stay in the same place.
DrawBox(400, 20);// just the x + y coords. (random coords)
If I were to draw this box in 1366 x768 size, it would be where I want it.
However, if I were to use this once again in 1600 x900 size, the box would be in the wrong place.
How would I be able to get the X coordinates automatically, so that if the screen resizes, it would be in the same place, no matter what?
I got the width of the box to automatically fit the size using the cScreenInfo class @Flengo uploaded. (Thank you!)
Publicist Since 04.04.2015
Middleman Since Unknown - Unknown Global Moderator Since 08.01.2013
Donator Since 05.29.2013
Minion+ Since 04.18.2013
District 187 Minion Since 04.04.2013
Steam Minion Since 02.26.2013
WarRock Minion Since 02.19.2013
A.V.A Minion Since 02.13.2013
DayZ Minion Since 01.21.2013 Combat Arms Minion Since 12.26.2012 Contributor Since 11.16.2012
Member Since 05.11.2010