From 81299ca9acc39dec62e1e504781721ad0db0d471 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Sat, 1 Nov 2008 03:36:47 +0000 Subject: Made NPC dialogues resizeable. --- src/gui/npc_text.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/gui/npc_text.h') diff --git a/src/gui/npc_text.h b/src/gui/npc_text.h index c9f13454..3773950a 100644 --- a/src/gui/npc_text.h +++ b/src/gui/npc_text.h @@ -27,6 +27,8 @@ #include #include +#include "scrollarea.h" +#include "button.h" #include "window.h" #include "../guichanfwd.h" @@ -48,6 +50,18 @@ class NpcTextDialog : public Window, public gcn::ActionListener */ NpcTextDialog(); + /** + * Called when resizing the window + * + * @param event The calling event + */ + void widgetResized(const gcn::Event &event); + + /** + * Redraws the window + */ + void draw(); + /** * Called when receiving actions from the widgets. */ @@ -72,7 +86,11 @@ class NpcTextDialog : public Window, public gcn::ActionListener addText(const std::string &string); private: + gcn::Button *okButton; + gcn::ScrollArea *scrollArea; TextBox *mTextBox; + + std::string mText; }; #endif -- cgit v1.2.3-70-g09d2