equal
deleted
inserted
replaced
27 |
27 |
28 #include "game.h" |
28 #include "game.h" |
29 #include "hwconsts.h" |
29 #include "hwconsts.h" |
30 #include "gameuiconfig.h" |
30 #include "gameuiconfig.h" |
31 #include "gamecfgwidget.h" |
31 #include "gamecfgwidget.h" |
|
32 #include "kb.h" |
32 |
33 |
33 HWGame::HWGame(GameUIConfig * config, GameCFGWidget * gamecfg) : |
34 HWGame::HWGame(GameUIConfig * config, GameCFGWidget * gamecfg) : |
34 TCPBase(true) |
35 TCPBase(true) |
35 { |
36 { |
36 this->config = config; |
37 this->config = config; |
124 QMessageBox::Ok, |
125 QMessageBox::Ok, |
125 QMessageBox::NoButton, |
126 QMessageBox::NoButton, |
126 QMessageBox::NoButton); |
127 QMessageBox::NoButton); |
127 return; |
128 return; |
128 } |
129 } |
|
130 case 'K': { |
|
131 ulong kb = msg.mid(2).toULong(); |
|
132 if (kb && kb <= KBmsgsCount) |
|
133 { |
|
134 QMessageBox::information(0, |
|
135 "Hedgewars: information", |
|
136 KBMessages[kb - 1], |
|
137 QMessageBox::Ok, |
|
138 QMessageBox::NoButton, |
|
139 QMessageBox::NoButton); |
|
140 } |
|
141 return; |
|
142 } |
129 case '+': { |
143 case '+': { |
130 if (gameType == gtNet) |
144 if (gameType == gtNet) |
131 { |
145 { |
132 emit SendNet(msg); |
146 emit SendNet(msg); |
133 } |
147 } |