Dresden
Emperor
- Joined
- Jul 10, 2008
- Messages
- 1,081
Note: this topic was originally about adding different sizing options to the CDA, but now it's more of a catch-all for all things CDA.
Time to split off the CDA discussion from the new features topic so I can spam pictures all over the place and feel less guilty about it. Note that most pictures are thumbnails which link to full-size versions
Current CDA (BUG 3.5):
The screen is always 1024x768. The panel is offset by 29 px from the top and 177px from the bottom meaning it is only 562 px tall; in terms of coords relative to the screen it occupies (0,29) to (1024, 591). If your game resolution is larger than that, it simply centers itself in the space and does not change size. So it looks like this:

First is a 1024x768 game window; second is 1280x800; third is 1440x900
Large Size:
What I have done is make it scale to resolution. It will expand left/right from its minimum 1024 to (nearly) the full window width; a buffer of no more than 40px on each side (changeable in Python; could become an option if needed) will occur at higher res just cause I thought it looked a bit nicer. So here is the larger size with the same 177 px gap at the bottom to show the production buttons. The top has a small gap (23px) similar to the old one at low resolutions but increases to as much as 105px (to allow access to the culture sliders) at high resolutions.

First is a 1024x768 game window; second is 1280x800; third is 1440x900
Options:
But wait, there's more. I'm also adding a BUG config option that lets you determine the minimal amount of space you want up top. I'm not yet completely happy with the text and it might be too wide right now but here are your options:
So here's 1024x768 res with "Minimal" and "See Culture Sliders" options respectively:

I'm looking for any feedback on this, particularly as it relates to the options. Right now the options only affect the minimum spacing because they were implemented last. So if I have monster resolution and choose "Minimal" it still leaves space for the culture sliders which is counter intuitive unless I do a way better job with the hover text. It is probably better off (and less confusing) to have the option apply exactly since people aren't likely to change their resolution very often anyway.
Also, the current implementation calculates the dimensions/positions every time you open the CDA. I had originally put in a flag that would make it only calculate once but then it doesn't react to changing resolutions (or BUG options) on the fly and that should probably be fixed.
And regarding the width, 40px buffers on the sides are probably too large. Other widescreen advisors use different numbers (the EFA and MA use 20px per side and the widescreen tech advisor uses 30) and we should probably be consistent.
Time to split off the CDA discussion from the new features topic so I can spam pictures all over the place and feel less guilty about it. Note that most pictures are thumbnails which link to full-size versions
Current CDA (BUG 3.5):
The screen is always 1024x768. The panel is offset by 29 px from the top and 177px from the bottom meaning it is only 562 px tall; in terms of coords relative to the screen it occupies (0,29) to (1024, 591). If your game resolution is larger than that, it simply centers itself in the space and does not change size. So it looks like this:



First is a 1024x768 game window; second is 1280x800; third is 1440x900
Large Size:
What I have done is make it scale to resolution. It will expand left/right from its minimum 1024 to (nearly) the full window width; a buffer of no more than 40px on each side (changeable in Python; could become an option if needed) will occur at higher res just cause I thought it looked a bit nicer. So here is the larger size with the same 177 px gap at the bottom to show the production buttons. The top has a small gap (23px) similar to the old one at low resolutions but increases to as much as 105px (to allow access to the culture sliders) at high resolutions.



First is a 1024x768 game window; second is 1280x800; third is 1440x900
Options:
But wait, there's more. I'm also adding a BUG config option that lets you determine the minimal amount of space you want up top. I'm not yet completely happy with the text and it might be too wide right now but here are your options:

So here's 1024x768 res with "Minimal" and "See Culture Sliders" options respectively:


I'm looking for any feedback on this, particularly as it relates to the options. Right now the options only affect the minimum spacing because they were implemented last. So if I have monster resolution and choose "Minimal" it still leaves space for the culture sliders which is counter intuitive unless I do a way better job with the hover text. It is probably better off (and less confusing) to have the option apply exactly since people aren't likely to change their resolution very often anyway.
Also, the current implementation calculates the dimensions/positions every time you open the CDA. I had originally put in a flag that would make it only calculate once but then it doesn't react to changing resolutions (or BUG options) on the fly and that should probably be fixed.
And regarding the width, 40px buffers on the sides are probably too large. Other widescreen advisors use different numbers (the EFA and MA use 20px per side and the widescreen tech advisor uses 30) and we should probably be consistent.