From 26a52e8f74306b6e13e7a2029c19d8c7e1efd23a Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Mon, 16 Feb 2009 18:52:54 +0000 Subject: Allow setting default values for NPC dialogs --- src/gui/npcintegerdialog.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/npcintegerdialog.cpp') diff --git a/src/gui/npcintegerdialog.cpp b/src/gui/npcintegerdialog.cpp index b05e77ba..6b26349a 100644 --- a/src/gui/npcintegerdialog.cpp +++ b/src/gui/npcintegerdialog.cpp @@ -109,6 +109,11 @@ void NpcIntegerDialog::action(const gcn::ActionEvent &event) } } +void NpcIntegerDialog::setDefaultValue(const int value) +{ + mValueField->setDefaultValue(value); +} + bool NpcIntegerDialog::isInputFocused() { return mValueField->isFocused(); -- cgit v1.2.3-70-g09d2