From: Christian S. <blu...@us...> - 2004-05-21 16:50:14
|
Update of /cvsroot/planeshift/planeshift/src/client/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28996 Modified Files: pawsgmgui.cpp Log Message: See history.txt Index: pawsgmgui.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/gui/pawsgmgui.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** pawsgmgui.cpp 18 May 2004 05:04:19 -0000 1.15 --- pawsgmgui.cpp 21 May 2004 16:50:04 -0000 1.16 *************** *** 336,340 **** --- 336,370 ---- break; } + case 36: // Ban player + { + csString cmd; + + pawsEditTextBox* mins = (pawsEditTextBox*)FindWidget("BanMin"); + pawsEditTextBox* hrs = (pawsEditTextBox*)FindWidget("BanHrs"); + pawsEditTextBox* days = (pawsEditTextBox*)FindWidget("BanDays"); + + if(!strcmp(mins->GetText(),"")) + break; + if(!strcmp(hrs->GetText(),"")) + break; + if(!strcmp(days->GetText(),"")) + break; + cmd = "/ban "; + cmd += GetSelectedName(); + cmd += " "; + cmd += mins->GetText(); + cmd += " "; + cmd += hrs->GetText(); + cmd += " "; + cmd += days->GetText(); + + psengine->GetCmdHandler()->Execute(cmd); + + // And request an update from the server + QueryServer(); + + break; + } ///////////////////////////////////////// ///// Misc stuff *************** *** 391,394 **** --- 421,431 ---- HideWidget("SectorLbl"); + HideWidget("BanMin"); + HideWidget("BanHrs"); + HideWidget("BanDays"); + HideWidget("BanMinlbl"); + HideWidget("BanHrslbl"); + HideWidget("BanDayslbl"); + //Tournament *************** *** 412,415 **** --- 449,458 ---- case 28: case 27: + ShowWidget("BanMin"); + ShowWidget("BanHrs"); + ShowWidget("BanDays"); + ShowWidget("BanMinlbl"); + ShowWidget("BanHrslbl"); + ShowWidget("BanDayslbl"); case 26: case 25: |