From: Andrew C. <ac...@us...> - 2003-05-14 23:11:03
|
Update of /cvsroot/planeshift/planeshift/src/client/paws In directory sc8-pr-cvs1:/tmp/cvs-serv16882/src/client/paws Modified Files: pawswidget.cpp pawswidget.h Log Message: Fixed for visible tag Index: pawswidget.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/paws/pawswidget.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** pawswidget.cpp 5 May 2003 08:25:13 -0000 1.8 --- pawswidget.cpp 14 May 2003 23:11:01 -0000 1.9 *************** *** 128,131 **** --- 128,140 ---- name = csString( atr->GetValue() ); + // Check to see if this widget is visible directly after a load. + atr = node->GetAttribute( "visible" ); + if ( atr ) + { + csString choice = csString( atr->GetValue() ); + if ( choice == "yes" ) Show(); + if ( choice == "no" ) Hide(); + } + // Check to see if this widget should save it's position Index: pawswidget.h =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/paws/pawswidget.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** pawswidget.h 5 May 2003 08:25:13 -0000 1.7 --- pawswidget.h 14 May 2003 23:11:01 -0000 1.8 *************** *** 170,173 **** --- 170,174 ---- */ const char* GetName() { return name; } + void SetName( const char* newName ) { name.Replace( newName ); } psPawsManager* WindowManager() { return windowManager; } *************** *** 220,223 **** --- 221,225 ---- void SetID( int newID ) { id = newID; } int GetID() { return id; } + /** Saves the position of this widget to the planeshift.cfg file. |