-add tibia chat commands like #w, #y and private command.

-fixed redundant onEnter/onReturn on chat panel
This commit is contained in:
AndreFaramir
2012-02-03 07:59:04 -02:00
parent 882b7ec026
commit 1615bf7a36
4 changed files with 82 additions and 20 deletions

View File

@@ -60,10 +60,6 @@ bool UIGame::onKeyPress(uchar keyCode, int keyboardModifiers, bool wouldFilter)
return true;
} else if(wouldFilter) {
return false;
} else if(keyCode == Fw::KeyReturn || keyCode == Fw::KeyEnter) {
g_game.talk(chatLineEdit->getText());
chatLineEdit->clearText();
return true;
} else if(keyCode == Fw::KeyDelete) {
chatLineEdit->removeCharacter(true);
return true;