summaryrefslogtreecommitdiff
path: root/src/gui/npcstringdialog.h
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-02-25 19:04:39 -0700
committerIra Rice <irarice@gmail.com>2009-02-25 19:04:39 -0700
commit0dde31c3db09113639fa443142995b6efcff6646 (patch)
tree9e91488f812067dae7a91f84393a930ffe31b626 /src/gui/npcstringdialog.h
parent6cd131052c78af04e794409189a0d7e16dcc0c51 (diff)
downloadmana-0dde31c3db09113639fa443142995b6efcff6646.tar.gz
mana-0dde31c3db09113639fa443142995b6efcff6646.tar.bz2
mana-0dde31c3db09113639fa443142995b6efcff6646.tar.xz
mana-0dde31c3db09113639fa443142995b6efcff6646.zip
Fix NPC handling to not need a handle on the NPC
Loosely based on TMW commit f04a8713ffc83db8b3dc4a472b28aad25a2b2bd1 Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/npcstringdialog.h')
-rw-r--r--src/gui/npcstringdialog.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/npcstringdialog.h b/src/gui/npcstringdialog.h
index c8871184..ee620daf 100644
--- a/src/gui/npcstringdialog.h
+++ b/src/gui/npcstringdialog.h
@@ -27,6 +27,8 @@
#include "window.h"
+class Network;
+
/**
* The npc integer input dialog.
*
@@ -40,7 +42,7 @@ class NpcStringDialog : public Window, public gcn::ActionListener
*
* @see Window::Window
*/
- NpcStringDialog();
+ NpcStringDialog(Network *network);
/**
* Called when receiving actions from the widgets.
@@ -70,6 +72,7 @@ class NpcStringDialog : public Window, public gcn::ActionListener
void requestFocus();
private:
+ Network *mNetwork;
gcn::TextField *mValueField;
gcn::Button *okButton;
gcn::Button *cancelButton;