diff options
author | Ira Rice <irarice@gmail.com> | 2008-10-25 20:36:09 +0000 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-10-25 20:36:09 +0000 |
commit | 0288225cf876d787a29f5b1d4e5885cc1d759e6f (patch) | |
tree | 1aad1fc53a8ca36893fcd7b11ecb8d125e9fd3a8 /src/gui/npc_text.cpp | |
parent | cd7415bd8ec7f9dc1ec91edbe052df97a7f644bf (diff) | |
download | mana-0288225cf876d787a29f5b1d4e5885cc1d759e6f.tar.gz mana-0288225cf876d787a29f5b1d4e5885cc1d759e6f.tar.bz2 mana-0288225cf876d787a29f5b1d4e5885cc1d759e6f.tar.xz mana-0288225cf876d787a29f5b1d4e5885cc1d759e6f.zip |
Made the ok dialogue use code that's similar to the speech bubble, so
that it can take advantage of the text box's wrapping code.
Diffstat (limited to 'src/gui/npc_text.cpp')
-rw-r--r-- | src/gui/npc_text.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/npc_text.cpp b/src/gui/npc_text.cpp index d51698fb..8324a196 100644 --- a/src/gui/npc_text.cpp +++ b/src/gui/npc_text.cpp @@ -36,8 +36,9 @@ NpcTextDialog::NpcTextDialog(): { mTextBox = new TextBox; mTextBox->setEditable(false); + gcn::ScrollArea *scrollArea = new ScrollArea(mTextBox); - Button *okButton = new Button("OK", "ok", this); + gcn::Button *okButton = new Button("OK", "ok", this); setContentSize(260, 175); scrollArea->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER); |