summaryrefslogtreecommitdiff
path: root/src/gui/npc_text.cpp
diff options
context:
space:
mode:
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"));