From: Christopher Kings-L. <ch...@us...> - 2005-04-30 05:49:43
|
Update of /cvsroot/planeshift/planeshift/src/client/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19274/src/client/gui Modified Files: pawsinteractwindow.cpp Log Message: Bug #567. Add right-click train icon on trainers. Net version bumped. Index: pawsinteractwindow.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/gui/pawsinteractwindow.cpp,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** pawsinteractwindow.cpp 8 Mar 2005 05:55:43 -0000 1.21 --- pawsinteractwindow.cpp 30 Apr 2005 05:49:03 -0000 1.22 *************** *** 72,75 **** --- 72,76 ---- #define INTERACT_COMBINE 1200 #define INTERACT_EXCHANGE 1300 + #define INTERACT_TRAIN 1400 ////////////////////////////////////////////////////////////////////// *************** *** 93,96 **** --- 94,98 ---- names.Push("ButtonCombine"); names.Push("ButtonExchange"); + names.Push("ButtonTrain"); types.Push(psGUIInteractMessage::EXAMINE); *************** *** 107,110 **** --- 109,113 ---- types.Push(psGUIInteractMessage::COMBINE); types.Push(psGUIInteractMessage::EXCHANGE); + types.Push(psGUIInteractMessage::TRAIN); openTick = 0; } *************** *** 289,292 **** --- 292,302 ---- return true; } + case INTERACT_TRAIN: + { + psengine->GetCmdHandler()->Execute("/train"); + Hide(); + windowManager->SetCurrentFocusedWidget( NULL ); + return true; + } } |