From: Luca P. <lpa...@us...> - 2002-04-30 11:46:45
|
Update of /cvsroot/planeshift/planeshift/src/client/gui/base In directory usw-pr-cvs1:/tmp/cvs-serv21725/src/client/gui/base Modified Files: pstext.cpp pstext.h Log Message: fixed advantage screen, added GetText() to psText Index: pstext.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/gui/base/pstext.cpp,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** pstext.cpp 17 Apr 2002 19:03:06 -0000 1.29 --- pstext.cpp 30 Apr 2002 11:46:42 -0000 1.30 *************** *** 249,253 **** lines[linepos].text[size]='\0'; } ! //------------------------------------------------------------------- --- 249,264 ---- lines[linepos].text[size]='\0'; } ! ! csString psText::GetText() ! { ! csString textRead = ""; ! for (int i=0; i<linecount; i++) { ! textRead += lines[i].text; ! if (i!=linecount-1) ! textRead += " "; // add a space that was removed with SetText() ! } ! return textRead; ! } ! //------------------------------------------------------------------- Index: pstext.h =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/gui/base/pstext.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** pstext.h 14 Apr 2002 15:19:33 -0000 1.9 --- pstext.h 30 Apr 2002 11:46:42 -0000 1.10 *************** *** 68,71 **** --- 68,74 ---- virtual bool HitTest(int ix, int iy, int ibutton); + // return text displayed + csString GetText(); + protected: /// adds a single line to the list |