ID:163651
 
Is there a maxX and maxY for the client.screen? I want to make my top-screen HUD items adjust to a changeable screensize, and as such I need to change it based on the size. If there is such variables, it would be good because then I can just do maxy - whatever or maxx - whatever instead of editing per view, which would be a hassle.
There's no reason to implement a feature where you can just store the values yourself. It's easy enough to define a screen_width and screen_height variable for clients, and update the client's view according to those values.
Polantaris wrote:
Is there a maxX and maxY for the client.screen? I want to make my top-screen HUD items adjust to a changeable screensize, and as such I need to change it based on the size. If there is such variables, it would be good because then I can just do maxy - whatever or maxx - whatever instead of editing per view, which would be a hassle.

If you look at screen_loc in the reference, you'll see you can use things like EAST and NORTH which adjust to the screen size.

Lummox JR
In response to Lummox JR
Ah alright, that helps a lot. Thanks.