summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlue <bluesansdouze@gmail.com>2009-05-02 01:33:45 +0200
committerChuck Miller <shadowmil@gmail.com>2009-05-01 20:08:42 -0400
commit81e0bb1a26530c5b5dc012ef125ce806b431a030 (patch)
treea38b7e9ed5c8d747a12a9ea53b4672eb9671e695
parent4df0cfd46e50696053faf0aee3af3f42c2032bca (diff)
downloadmana-client-81e0bb1a26530c5b5dc012ef125ce806b431a030.tar.gz
mana-client-81e0bb1a26530c5b5dc012ef125ce806b431a030.tar.bz2
mana-client-81e0bb1a26530c5b5dc012ef125ce806b431a030.tar.xz
mana-client-81e0bb1a26530c5b5dc012ef125ce806b431a030.zip
mainline - NPC String input
Adding support for npc string input for tmwserv.
-rw-r--r--src/net/tmwserv/npchandler.cpp6
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();