Re: [GD-General] GUI Design
Brought to you by:
vexxed72
From: Ray <ra...@gu...> - 2003-01-23 05:16:28
|
Make sure you take window aspect into account. For example, if you're in parhelia triple-headed mode, your aspect is really wide and you don't want things horribly stretched. - Ray Jason Maynard wrote: > Yeah I would recommend using values between 0.0 and 1.0 as a percentage of > the width or height of the screen like you said, you can convert to actual > screen coordinates by just multiplying the the screen width or height then. > > Another option is to design the GUI layout in a fixed resolution and then to > convert them into a different resolution apply a scaling factor. Say you > have a point (x,y) in 640x480 layout and your screen is in resolution WxH, > then to find the point (x',y') in screen space: > > x' = x * (W / 640); > y' = y * (H / 480); > > -Jason |