diff options
author | Blue <bluesansdouze@gmail.com> | 2009-05-02 01:33:45 +0200 |
---|---|---|
committer | Chuck Miller <shadowmil@gmail.com> | 2009-05-01 20:08:42 -0400 |
commit | 81e0bb1a26530c5b5dc012ef125ce806b431a030 (patch) | |
tree | a38b7e9ed5c8d747a12a9ea53b4672eb9671e695 /src/net/tmwserv/npchandler.cpp | |
parent | 4df0cfd46e50696053faf0aee3af3f42c2032bca (diff) | |
download | mana-81e0bb1a26530c5b5dc012ef125ce806b431a030.tar.gz mana-81e0bb1a26530c5b5dc012ef125ce806b431a030.tar.bz2 mana-81e0bb1a26530c5b5dc012ef125ce806b431a030.tar.xz mana-81e0bb1a26530c5b5dc012ef125ce806b431a030.zip |
mainline - NPC String input
Adding support for npc string input for tmwserv.
Diffstat (limited to 'src/net/tmwserv/npchandler.cpp')
-rw-r--r-- | src/net/tmwserv/npchandler.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/tmwserv/npchandler.cpp b/src/net/tmwserv/npchandler.cpp index 9447e2f8..b7bb429c 100644 --- a/src/net/tmwserv/npchandler.cpp +++ b/src/net/tmwserv/npchandler.cpp @@ -48,6 +48,8 @@ NpcHandler::NpcHandler() GPMSG_NPC_MESSAGE, GPMSG_NPC_ERROR, GPMSG_NPC_CLOSE, + GPMSG_NPC_NUMBER, + GPMSG_NPC_STRING, 0 }; handledMessages = _messages; @@ -83,6 +85,10 @@ void NpcHandler::handleMessage(MessageIn &msg) break; } + case GPMSG_NPC_STRING: + npcDialog->textRequest(""); + break; + case GPMSG_NPC_POST: npcDialog->setVisible(false); npcPostDialog->clear(); |