summaryrefslogtreecommitdiff
path: root/src/gui/npc_text.h
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-01-28 16:58:56 -0700
committerIra Rice <irarice@gmail.com>2009-01-28 16:58:56 -0700
commit4418d3678337276070e6d46d8011ce052be388a5 (patch)
tree03137a83a020670cfce5a7044238314509025464 /src/gui/npc_text.h
parent1ca8d08b7619e1958371ce8d82e201b82ae39e32 (diff)
downloadmana-4418d3678337276070e6d46d8011ce052be388a5.tar.gz
mana-4418d3678337276070e6d46d8011ce052be388a5.tar.bz2
mana-4418d3678337276070e6d46d8011ce052be388a5.tar.xz
mana-4418d3678337276070e6d46d8011ce052be388a5.zip
Moved NPC text back to using the textbox. Rationale is that the textbox
code is in much better shape than the browserbox code at the moment, and that the move to using the browserbox was a bit silly, as textbox already wraps. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/npc_text.h')
-rw-r--r--src/gui/npc_text.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gui/npc_text.h b/src/gui/npc_text.h
index b4b6f1af..4e0d33aa 100644
--- a/src/gui/npc_text.h
+++ b/src/gui/npc_text.h
@@ -29,7 +29,7 @@
#include "scrollarea.h"
#include "window.h"
-class BrowserBox;
+class TextBox;
/**
* The npc text dialog.
@@ -71,10 +71,19 @@ class NpcTextDialog : public Window, public gcn::ActionListener
*/
void addText(const std::string &string);
+ /**
+ * Called when resizing the window.
+ *
+ * @param event The calling event
+ */
+ void widgetResized(const gcn::Event &event);
+
private:
gcn::Button *okButton;
gcn::ScrollArea *scrollArea;
- BrowserBox *mBrowserBox;
+ TextBox *mTextBox;
+
+ std::string mText;
};
#endif // NPC_TEXT_H