From: Anders R. <ma...@us...> - 2003-05-03 16:53:37
|
Update of /cvsroot/planeshift/planeshift/src/client/aws In directory sc8-pr-cvs1:/tmp/cvs-serv15981/src/client/aws Modified Files: psexchangewindow.cpp Log Message: - Added name of other player in the exchange startup message and added display of this in the exchange window. The Layout and 2d graphics should be updated when converting this window to use new paws. Index: psexchangewindow.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/aws/psexchangewindow.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** psexchangewindow.cpp 1 May 2003 21:50:40 -0000 1.3 --- psexchangewindow.cpp 3 May 2003 16:53:34 -0000 1.4 *************** *** 211,218 **** --- 211,220 ---- csString offering; csString receiving; + csString name; tag.GetTagParm("ID",id); tag.GetTagParm("OFFERING",offering); tag.GetTagParm("RECEIVING",receiving); + tag.GetTagParm("NAME",name); *************** *** 225,228 **** --- 227,232 ---- psComponentImage * receiving_bg = (psComponentImage*)receivingFrame->FindChild("BackDrop"); if (!receiving_bg) return; + psComponentTextBox * other_player = (psComponentTextBox*)mainWindow->FindChild("other_player"); + if (!other_player) return; if (offering == "ACCEPTED") *************** *** 243,246 **** --- 247,252 ---- receiving_bg->ChangeImage("/planeshift/art/gui/invback.png"); } + + other_player->SetText(name); |