summaryrefslogtreecommitdiff
path: root/src/gui/npc_text.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-05 14:37:13 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-05 14:37:13 +0000
commit9978e58ee7d9a15814b939fa8dd42254e16702b2 (patch)
treed2819558b081767fb7ed27bf2de1a991a343766c /src/gui/npc_text.cpp
parent20811a8b13a5425bcc956a380f7e8d4878eb5c9d (diff)
downloadmana-9978e58ee7d9a15814b939fa8dd42254e16702b2.tar.gz
mana-9978e58ee7d9a15814b939fa8dd42254e16702b2.tar.bz2
mana-9978e58ee7d9a15814b939fa8dd42254e16702b2.tar.xz
mana-9978e58ee7d9a15814b939fa8dd42254e16702b2.zip
Removed bugging cancel button from npc dialog and fixed npc sprites.
Diffstat (limited to 'src/gui/npc_text.cpp')
-rw-r--r--src/gui/npc_text.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/npc_text.cpp b/src/gui/npc_text.cpp
index dc70927c..f86f45e9 100644
--- a/src/gui/npc_text.cpp
+++ b/src/gui/npc_text.cpp
@@ -36,8 +36,11 @@ NpcTextDialog::NpcTextDialog(gcn::Container *parent):
okButton = new Button("OK");
setSize(260, 175);
- scrollArea->setDimension(gcn::Rectangle(5, 5, 250, 130));
- okButton->setPosition(260 - 10 - okButton->getWidth(), 145);
+ scrollArea->setDimension(gcn::Rectangle(
+ 5, 5, 250, 160 - okButton->getHeight()));
+ okButton->setPosition(
+ 260 - 5 - okButton->getWidth(),
+ 175 - 5 - okButton->getHeight());
okButton->setEventId("ok");
okButton->addActionListener(this);