From: Erik V. <eri...@xs...> - 2010-12-26 20:28:37
|
Not yet, but your suggestions are noted. 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? -- Chris Please consider the environment before printing this e-mail. On Sat, Dec 25, 2010 at 3:36 PM, Erik Vos <eri...@xs...> wrote: I have committed (still somewhat experimental) code that implements the requested feature #3064823 to have the main windows remember their bounds (location and size) across program restarts. This is handled by a new class WindowSettings. The bounds per window and per game are saved in a file named like "settings_xxxx.rails_ini", where xxxx is the game name. This file is stored in the save directory (as does ConfigWindow with its config files), but I'm open to any other suggestions. The settings are stored only when the program terminates normally, i.e. via File|Quit in the StatusWindow, or when the StatusWindow is closed. Window identification is per class name. This implies, that ReportWindow and ReportWindowDynamic have separate settings. Erik. ---------------------------------------------------------------------------- -- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Rails-devel mailing list Rai...@li... https://lists.sourceforge.net/lists/listinfo/rails-devel |