From: Erik V. <eri...@xs...> - 2010-12-30 10:09:24
|
OK, I have added a system property for the settings directory: -Dsettings.directory=<path> A default settings file can exist and must be named settings_xxxx.rails.ini. This file must be created manually, e.g. by copying a game-specific file that you want to use as a default. (I do not want to create a UI menu to manage settings and files, as I want to keep this whole facility small, simple and unobstrusive.) The default settings file is read if no game-specific file exists. However, only the game-specific file will be ever (over)written at quitting the game. For the stock chart, only the location is applied if the default file is read. Setting a default stock chart size gives bad results. Erik _____ From: Chris Shaffer [mailto:chr...@gm...] Sent: Sunday 26 December 2010 19:29 To: Development list for Rails: an 18xx game Subject: Re: [Rails-devel] Window position and size persistence Is there any way to set the location of the ini file in the script that loads the game? I want to be able to specify one window arrangement for my laptop, one for my desktop, etc. I keep the rails jar file in my (personal, not shared) Dropbox folder. Also, can I set the window locations persistently across all games, rather than per-game? |