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.h22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/gui/npcstringdialog.h b/src/gui/npcstringdialog.h
index ee620daf..94cd59b2 100644
--- a/src/gui/npcstringdialog.h
+++ b/src/gui/npcstringdialog.h
@@ -1,9 +1,8 @@
/*
- * Aethyra
+ * The Mana World
* Copyright (C) 2004 The Mana World Development Team
*
- * This file is part of Aethyra based on original code
- * from The Mana World.
+ * This file is part of The Mana World.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -23,11 +22,13 @@
#ifndef GUI_NPCSTRINGDIALOG_H
#define GUI_NPCSTRINGDIALOG_H
-#include <guichan/actionlistener.hpp>
-
#include "window.h"
+#include <guichan/actionlistener.hpp>
+
+#ifdef EATHENA_SUPPORT
class Network;
+#endif
/**
* The npc integer input dialog.
@@ -42,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.
@@ -71,11 +76,14 @@ class NpcStringDialog : public Window, public gcn::ActionListener
*/
void requestFocus();
+ void setVisible(bool visible);
+
private:
+#ifdef EATHENA_SUPPORT
Network *mNetwork;
+#endif
gcn::TextField *mValueField;
- gcn::Button *okButton;
- gcn::Button *cancelButton;
+ std::string mDefault;
};
extern NpcStringDialog *npcStringDialog;