Moderator: OpenTTD Developers
Is there any way to change the default window size for all the different windows?
For example, whenever I buy a new vehicle, I always enlarge the "new vehicle" window so that I can see more vehicles at a time. It would have been much better if I could set it so that it always opened up enlarged.
I don't know how many people open different versions (newer/older savegames) wouldn't most people play the same version which would mean opening the latest with the last set of windows .... maybe?
I don't know what you mean exactly, but I play a different version every time, since I build my versions from trunk.Kevlar31 wrote:I don't know how many people open different versions (newer/older savegames) wouldn't most people play the same version which would mean opening the latest with the last set of windows .... maybe?
There are also a lot of people playing nightly versions.
The main problem is to find a good place for such settings. The savegame won't work, as it gets copied to other users (eg in MP, or through the forum, or some other website) that have different size screens etc.
The openttd.cfg file won't work, as the set of windows is not related to a particular game any more (ie play one game, save and exit, start anew with a different game, and you get the set of windows of the previous game).
You're welcome to work on this problem, and make a patch to fix it.
store window settings in config file along with the savegame name (if locally) or server name+address (if on multiplayer server). Ignore these settings when they don't match the loaded savegame and overwrite upon leaving the current game.
Alternatively it could be stored in the savegame. And window positions only restored, if the viewport matches in size or is bigger. Otherwise windows are moved so long to the left and to the top till they fit. If that doesn't fit, try drawing them in their default size. If that doesn't fit: close them. Stored in savegame is probably more difficult and likely has more (hidden) issues than the cfg solution.
But neither thought is based on long thinking, thus may have more drawbacks.
in fact, they are contradicting goals. "scaling" would change window sizes the same way as window content, so there's always the same content in the window (or less, if the window would get bigger than the screen). but here you want to resize the window so it displays more content.
The overall font faces and sizes tend to be too small on large resolutions (i.e. 1920x1080), and while those can be tweaked, some windows, like the vehicle purchase one, end up too small by default and need to be constantly resized.
Doubling the interface size seems like too much, and doubling the size of the UI sprites is a tad ugly.
To elaborate, all resizable windows should now have a "default size" button:Eddi wrote:with most windows, you can now save a new default size
When you've set your preferred size of the window, hold Ctrl and click the "small square" button next to the pin button.
Users browsing this forum: No registered users and 6 guests