summaryrefslogtreecommitdiff
path: root/src/gui/npc_text.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-02-23 06:47:44 -0700
committerJared Adams <jaxad0127@gmail.com>2009-02-23 06:47:44 -0700
commit208e4cfad44dd5bf1d0409d1c2227a1a5eae3a2e (patch)
treea655be86ef9ac68ee540a66587e2177a37668bfc /src/gui/npc_text.cpp
parentebe59b84ab4c378bc0c203d7f22e1196058a15d2 (diff)
downloadmana-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/gui/npc_text.cpp')
-rw-r--r--src/gui/npc_text.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/npc_text.cpp b/src/gui/npc_text.cpp
index e6f039a0..be67fb6e 100644
--- a/src/gui/npc_text.cpp
+++ b/src/gui/npc_text.cpp
@@ -73,6 +73,11 @@ void NpcTextDialog::addText(const std::string &text)
mScrollArea->setVerticalScrollAmount(mScrollArea->getVerticalMaxScroll());
}
+void NpcTextDialog::clearText()
+{
+ setText("");
+}
+
void NpcTextDialog::showNextButton()
{
mButton->setCaption(_("Next"));