diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-04 15:09:14 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-04 15:09:14 +0000 |
commit | ae4e9076051a736e2bbbce91e7fd58cb27448f24 (patch) | |
tree | 13dc16f764fff92b5f47fd75ce135493fa6374dd /src/gui/char_server.cpp | |
parent | dd2d81690185e789d435d5b1839c04bd8e77dea4 (diff) | |
download | mana-ae4e9076051a736e2bbbce91e7fd58cb27448f24.tar.gz mana-ae4e9076051a736e2bbbce91e7fd58cb27448f24.tar.bz2 mana-ae4e9076051a736e2bbbce91e7fd58cb27448f24.tar.xz mana-ae4e9076051a736e2bbbce91e7fd58cb27448f24.zip |
Removed large parts of old GUI code and improved layout of a few dialogs.
Diffstat (limited to 'src/gui/char_server.cpp')
-rw-r--r-- | src/gui/char_server.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/gui/char_server.cpp b/src/gui/char_server.cpp index 38fb0595..ea28d849 100644 --- a/src/gui/char_server.cpp +++ b/src/gui/char_server.cpp @@ -42,9 +42,17 @@ ServerSelectDialog::ServerSelectDialog(gcn::Container *parent): cancelButton = new Button("Cancel"); setSize(200, 100); - scrollArea->setDimension(gcn::Rectangle(4, 4, 192, 55)); - okButton->setPosition(120, 70); - cancelButton->setPosition(146, 70); + + cancelButton->setPosition( + 200 - cancelButton->getWidth() - 5, + 100 - cancelButton->getHeight() - 5); + okButton->setPosition( + cancelButton->getX() - okButton->getWidth() - 5, + 100 - okButton->getHeight() - 5); + scrollArea->setDimension(gcn::Rectangle( + 5, 5, 200 - 2 * 5, + 100 - 3 * 5 - cancelButton->getHeight() - + scrollArea->getBorderSize())); serverList->setEventId("ok"); okButton->setEventId("ok"); |