From 0288225cf876d787a29f5b1d4e5885cc1d759e6f Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Sat, 25 Oct 2008 20:36:09 +0000 Subject: 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. --- src/gui/npc_text.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui/npc_text.cpp') 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); -- cgit v1.2.3-70-g09d2