Change default window size?
Moderator: OpenTTD Developers
Change default window size?
Hi.
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.
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.
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Change default window size?
Currently that's not feasible.
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: Change default window size?
Is it possible to load a save game with the windows showing that you had open previously?
Re: Change default window size?
Nope, it's on the "todo" list: http://wiki.openttd.org/Todo_list (search for "Save GUI settings savegame specific")
Re: Change default window size?
Wow! Thanks for the quick reply!
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 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?
Re: Change default window size?
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.
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Change default window size?
I wonder whether there's not place for a solution which is good enough in many cases, nor would it probably block another solution which works for more or all savegames and / or network games:
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.
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.
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: Change default window size?
Ahhh! I see that the answer is a lot more complex than my narrow view, I play single player and use the same windows each time. I was thinking that a separate file containing the window preferences (sizes, position etc.) could be loaded with each game that is played. In my mind you could start a new game set up your preferred windows, click a button that saves them to a file (.cfg?) and they would be loaded automatically for your machine, monitors, desktop. *shrugs* It's easy for me to suggest stuff as I don't code at all.
Re: Change default window size?
I think the problem is wider. The problem is interface scaling, in general. I suggest to improve it.
OpenTTD Suggestions :: Interface scaling
OpenTTD Suggestions :: Interface scaling
Last edited by adf88 on 15 May 2013 08:35, edited 1 time in total.
don't worry, be happy and checkout my patches
Re: Change default window size?
i don't think this has anything to do with "interface scaling" at all.
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.
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.
Re: Change default window size?
I think the savegame would work; just discard the settings, if loaded with a different OpenTTD size then ...
I like to look at great maps and see how things flow. A little like a finished model railway, but it is evolving and actually never finished. http://www.simutrans.com
Re: Change default window size?
I apologize for the necroposting, but is this still on the to-do list? The wiki seems to indicate so.
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.
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.
Re: Change default window size?
with most windows, you can now save a new default size
Re: Change default window size?
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.
Who is online
Users browsing this forum: No registered users and 12 guests