Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Resolution dependent lists?  (Read 878 times)

MaXMC

  • Bay Watcher
    • View Profile
Resolution dependent lists?
« on: June 19, 2009, 04:50:01 am »

Hi,

I've searched the forums but haven't found this suggested before.

This should be very easy to implement and very usefull.
The different lists in the game have a hard-coded lenght (Build menu 15 items, Unit list 19 items for example).

I'm running the game at 1280x1024 which gives me 64 rows to play with, Why not make every list 20+(FULLGRID_X-25)/2 So for me that would make my lists 40 rows.
Explanation on how I arrived at -24: Interface border is 2 rows, 1 row for options and 1 row for space between options and top, this is 5 reserved rows, which leaves 20 usable rows in minimum game resolution.

Someone running 80x25 would get 20+(25-24)/2=20  rows on their lists. Once this is done, the game can be played in any resolution and the higher resolution is used for something good.

Examples:
80x25 game = 25 rows = 20 rows on any list
80x50 game = 33 rows
80x64 game (1280x1024) = 40 rows
100x75 game (1600x1200) = 45 rows

Comments? Suggestions?
Logged

Omnibus

  • Escaped Lunatic
    • View Profile
Re: Resolution dependent lists?
« Reply #1 on: June 25, 2009, 03:40:32 am »

I second this.  It's a great idea.
Logged

chucks

  • Bay Watcher
  • Have Cutlass -- Will Travel
    • View Profile
Re: Resolution dependent lists?
« Reply #2 on: June 25, 2009, 09:45:00 am »

I like this one, but...

This should be very easy to implement and very usefull.

Never assume that you know how easy or hard a feature will be to develop.  Not lashing out at you, but people outside development teams saying how easy a feature is to code is a huge pet peeve of mine.
Logged
Computer says 'No'.

CobaltKobold

  • Bay Watcher
  • ☼HOOD☼ ☼ROBE☼ ☼DAGGER☼ [TAIL]
    • View Profile
Re: Resolution dependent lists?
« Reply #3 on: June 25, 2009, 07:17:59 pm »

Spoiler: "on easy-to-implement" (click to show/hide)
On topic: X is horizontal. I do think that having the lists be so dratted small on one side when you're using 168 columns is silly.

I only count 4 columns reserved potentially- borders, and between main/menu/map. Six if you're including blackspace on either side of menu. For rows, there's no technical reason for a blank line in the menus, it just looks a bit less busy, so currently I think there's only two reserved rows, four  (These, too, technically could be removed, but it'd look muc hworse than removing the blackspace border in menu.)

Logged
Neither whole, nor broken. Interpreting this post is left as an exercise for the reader.
OCEANCLIFF seeding, high z-var(40d)
Tilesets