diff options
author | Ira Rice <irarice@gmail.com> | 2008-11-01 03:36:47 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-12-07 00:10:44 +0100 |
commit | 523eed88816298b1660ecb9e67db80776e4007bb (patch) | |
tree | a6a7a1022ae6f79dde3f370a19044669e9b13378 /src/gui/npclistdialog.h | |
parent | 84cfc5ac9929d2190d9fb19fa411b72d90bb2185 (diff) | |
download | mana-523eed88816298b1660ecb9e67db80776e4007bb.tar.gz mana-523eed88816298b1660ecb9e67db80776e4007bb.tar.bz2 mana-523eed88816298b1660ecb9e67db80776e4007bb.tar.xz mana-523eed88816298b1660ecb9e67db80776e4007bb.zip |
Made NPC dialogues resizeable.
(cherry picked from Aethyra commit 81299ca9acc39dec62e1e504781721ad0db0d471)
Conflicts:
src/gui/inventorywindow.cpp
src/gui/npc_text.cpp
Diffstat (limited to 'src/gui/npclistdialog.h')
-rw-r--r-- | src/gui/npclistdialog.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gui/npclistdialog.h b/src/gui/npclistdialog.h index 0e6760f1..0c9ca495 100644 --- a/src/gui/npclistdialog.h +++ b/src/gui/npclistdialog.h @@ -49,6 +49,18 @@ class NpcListDialog : public Window, public gcn::ActionListener, NpcListDialog(); /** + * 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. */ void @@ -82,6 +94,9 @@ class NpcListDialog : public Window, public gcn::ActionListener, private: gcn::ListBox *mItemList; + gcn::ScrollArea *scrollArea; + gcn::Button *okButton; + gcn::Button *cancelButton; std::vector<std::string> mItems; }; |