--- a/QTfrontend/game.cpp Fri Oct 27 19:37:59 2006 +0000
+++ b/QTfrontend/game.cpp Fri Oct 27 22:07:38 2006 +0000
@@ -29,6 +29,7 @@
#include "hwconsts.h"
#include "gameuiconfig.h"
#include "gamecfgwidget.h"
+#include "kb.h"
HWGame::HWGame(GameUIConfig * config, GameCFGWidget * gamecfg) :
TCPBase(true)
@@ -126,6 +127,19 @@
QMessageBox::NoButton);
return;
}
+ case 'K': {
+ ulong kb = msg.mid(2).toULong();
+ if (kb && kb <= KBmsgsCount)
+ {
+ QMessageBox::information(0,
+ "Hedgewars: information",
+ KBMessages[kb - 1],
+ QMessageBox::Ok,
+ QMessageBox::NoButton,
+ QMessageBox::NoButton);
+ }
+ return;
+ }
case '+': {
if (gameType == gtNet)
{