summaryrefslogtreecommitdiff
path: root/src/gui/npcstringdialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/npcstringdialog.h')
-rw-r--r--src/gui/npcstringdialog.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gui/npcstringdialog.h b/src/gui/npcstringdialog.h
index 0faaf203..94cd59b2 100644
--- a/src/gui/npcstringdialog.h
+++ b/src/gui/npcstringdialog.h
@@ -26,6 +26,10 @@
#include <guichan/actionlistener.hpp>
+#ifdef EATHENA_SUPPORT
+class Network;
+#endif
+
/**
* The npc integer input dialog.
*
@@ -39,7 +43,11 @@ class NpcStringDialog : public Window, public gcn::ActionListener
*
* @see Window::Window
*/
+#ifdef TMWSERV_SUPPORT
NpcStringDialog();
+#else
+ NpcStringDialog(Network *network);
+#endif
/**
* Called when receiving actions from the widgets.
@@ -68,9 +76,16 @@ class NpcStringDialog : public Window, public gcn::ActionListener
*/
void requestFocus();
+ void setVisible(bool visible);
+
private:
+#ifdef EATHENA_SUPPORT
+ Network *mNetwork;
+#endif
gcn::TextField *mValueField;
std::string mDefault;
};
+extern NpcStringDialog *npcStringDialog;
+
#endif // GUI_NPCSTRINGDIALOG_H