Update of /cvsroot/netrek/client/netrekxp/resources/docs In directory sc8-pr-cvs16:/tmp/cvs-serv17585/resources/docs Modified Files: changes.txt netrekrc netrekrc_options.txt Log Message: This patch focuses on getting windows geometries to save via the in-game save key. Redefined win->orig_* to mean not the values in newwin(), but rather the original values as determined by the netrekrc. New variables to window struct, win->actual_*, which are defined at the exact moment of window creation to get the true screen coordinates of the original window (note that these are NOT the same as the coordinates you put in the netrekrc file! They are modified by things like border, padding, system metrics, etc). New function checkWindowsGeometry() which checks current windows placement vs. the placement that was originally given (win->actual_*). If they differ, to then backwards convert the current screen coordinates into a netrekrc entry, the current coordinates are modified by (win->actual_* - win->orig_*), to take into account things like borders, padding, etc. If they don't differ, then the netrekrc string is used (i.e. "local.geometry: xxxx"). In the in-game save function, a call to checkWindowGeometry is made to get the geometry. Also, the current mapped state of window is used for saving, rather than the one from the netrekrc, so that if people change window mappings, they save. Fixed documentation incorrectness on playerListObserver option. Index: netrekrc =================================================================== RCS file: /cvsroot/netrek/client/netrekxp/resources/docs/netrekrc,v retrieving revision 1.58 retrieving revision 1.59 diff -u -d -r1.58 -r1.59 --- netrekrc 9 Apr 2007 11:31:35 -0000 1.58 +++ netrekrc 10 Apr 2007 00:44:02 -0000 1.59 @@ -272,6 +272,7 @@ # 1 - players # 2 - observers # 3 - players, then observers +# 4 - playerlist is off playerListObserver: 3 # Predefined player list Index: netrekrc_options.txt =================================================================== RCS file: /cvsroot/netrek/client/netrekxp/resources/docs/netrekrc_options.txt,v retrieving revision 1.47 retrieving revision 1.48 diff -u -d -r1.47 -r1.48 --- netrekrc_options.txt 7 Apr 2007 05:17:38 -0000 1.47 +++ netrekrc_options.txt 10 Apr 2007 00:44:03 -0000 1.48 @@ -202,10 +202,12 @@ playerListMessaging: (on/off) allow messages to be sent to players by clicking player on the player list window -playerlistObserver: (0-2) what kind of players to show +playerlistObserver: (0-4) what kind of players to show # 0 - all (default) # 1 - players # 2 - observers +# 3 - players, then observers +# 4 - playerlist is off playerListStyle: (0-4) what player list style to use # 0 - custom style as defined in playerList Index: changes.txt =================================================================== RCS file: /cvsroot/netrek/client/netrekxp/resources/docs/changes.txt,v retrieving revision 1.165 retrieving revision 1.166 diff -u -d -r1.165 -r1.166 --- changes.txt 9 Apr 2007 11:31:35 -0000 1.165 +++ changes.txt 10 Apr 2007 00:44:02 -0000 1.166 @@ -1,7 +1,12 @@ Netrek XP 2006, Version 1.3: -- working on getting window placements and sizes to save with the in-game save key, - For the most part you the user will never need to manually edit the netrekrc again, - well maybe for changing login name or making macros. +- preference for showing main title bar (toggled via alt+enter) is now saved via + in-game save key +- Window placements and sizes to save with the in-game save key. In the special case + of local and map windows, if you set the windows to non-square, and save them, they + will save as squares (those windows really don't work right if they aren't square). + All other windows will obey size and placements you give them. Hopefully this takes + some of the pain out of setting up windows (you should be able to do it without + having to edit netrekrc hopefully). - new netrekrc option "saveFile: name" to control what filename you write to when you save your options in game (either with " key or via the save menu). Default is now netrekrc, so that means if you save in-game, it will overwrite your netrekrc with