diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-02-23 06:47:44 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-02-23 06:47:44 -0700 |
commit | 208e4cfad44dd5bf1d0409d1c2227a1a5eae3a2e (patch) | |
tree | a655be86ef9ac68ee540a66587e2177a37668bfc /src/net/playerhandler.cpp | |
parent | ebe59b84ab4c378bc0c203d7f22e1196058a15d2 (diff) | |
download | mana-client-208e4cfad44dd5bf1d0409d1c2227a1a5eae3a2e.tar.gz mana-client-208e4cfad44dd5bf1d0409d1c2227a1a5eae3a2e.tar.bz2 mana-client-208e4cfad44dd5bf1d0409d1c2227a1a5eae3a2e.tar.xz mana-client-208e4cfad44dd5bf1d0409d1c2227a1a5eae3a2e.zip |
Clear text from NpcTextDialog when character dies
Also hid the integer and string dialogs
Diffstat (limited to 'src/net/playerhandler.cpp')
-rw-r--r-- | src/net/playerhandler.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/net/playerhandler.cpp b/src/net/playerhandler.cpp index fc3506fb..ee1b2fd9 100644 --- a/src/net/playerhandler.cpp +++ b/src/net/playerhandler.cpp @@ -32,8 +32,10 @@ #include "../gui/buy.h" #include "../gui/chat.h" #include "../gui/gui.h" -#include "../gui/npclistdialog.h" #include "../gui/npc_text.h" +#include "../gui/npcintegerdialog.h" +#include "../gui/npclistdialog.h" +#include "../gui/npcstringdialog.h" #include "../gui/ok_dialog.h" #include "../gui/sell.h" #include "../gui/skill.h" @@ -46,7 +48,9 @@ OkDialog *weightNotice = NULL; OkDialog *deathNotice = NULL; +extern NpcIntegerDialog *npcIntegerDialog; extern NpcListDialog *npcListDialog; +extern NpcStringDialog *npcStringDialog; extern NpcTextDialog *npcTextDialog; extern BuyDialog *buyDialog; extern SellDialog *sellDialog; @@ -81,7 +85,10 @@ namespace { { player_node->revive(); deathNotice = NULL; + npcIntegerDialog->setVisible(false); npcListDialog->setVisible(false); + npcStringDialog->setVisible(false); + npcTextDialog->clearText(); npcTextDialog->setVisible(false); buyDialog->setVisible(false); sellDialog->setVisible(false); |