summaryrefslogtreecommitdiff
path: root/src/gui/setup_video.cpp
diff options
context:
space:
mode:
authorAngelo Castellani <udp.castellani@gmail.com>2011-05-23 16:57:59 -0400
committerJared Adams <jaxad0127@gmail.com>2011-05-24 20:15:55 -0600
commit2aac8b5dd7cbd96f76d34c3f0e45df679cb528ae (patch)
tree9b153b9e7c0c77d53e3693da0a03f02d98407312 /src/gui/setup_video.cpp
parentb986acb7f793cb569a25d93aa667861380214d2a (diff)
downloadmana-client-2aac8b5dd7cbd96f76d34c3f0e45df679cb528ae.tar.gz
mana-client-2aac8b5dd7cbd96f76d34c3f0e45df679cb528ae.tar.bz2
mana-client-2aac8b5dd7cbd96f76d34c3f0e45df679cb528ae.tar.xz
mana-client-2aac8b5dd7cbd96f76d34c3f0e45df679cb528ae.zip
Used spacer to pretty up setup
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
Diffstat (limited to 'src/gui/setup_video.cpp')
-rw-r--r--src/gui/setup_video.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp
index aaad729f..939cafb5 100644
--- a/src/gui/setup_video.cpp
+++ b/src/gui/setup_video.cpp
@@ -37,6 +37,7 @@
#include "gui/widgets/listbox.h"
#include "gui/widgets/scrollarea.h"
#include "gui/widgets/slider.h"
+#include "gui/widgets/spacer.h"
#include "gui/widgets/textfield.h"
#include "gui/widgets/dropdown.h"
@@ -182,11 +183,13 @@ Setup_Video::Setup_Video():
{
setName(_("Video"));
+ Spacer *space = new Spacer(0,10);
+
ScrollArea *scrollArea = new ScrollArea(mModeList);
scrollArea->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER);
- overlayDetailLabel = new Label(_("Ambient FX"));
- particleDetailLabel = new Label(_("Particle detail"));
+ overlayDetailLabel = new Label(_("Ambient FX:"));
+ particleDetailLabel = new Label(_("Particle detail:"));
mModeList->setEnabled(true);
@@ -200,6 +203,9 @@ Setup_Video::Setup_Video():
mFpsSlider->setEnabled(mFps > 0);
mFpsCheckBox->setSelected(mFps > 0);
+ overlayDetailLabel->setAlignment(Graphics::RIGHT);
+ particleDetailLabel->setAlignment(Graphics::RIGHT);
+
// If the openGL Mode is enabled, disabling the transaprency
// is irrelevant.
mDisableSDLTransparencyCheckBox->setEnabled(!mOpenGLEnabled);
@@ -250,11 +256,17 @@ Setup_Video::Setup_Video():
place(2, 0, mFsCheckBox, 2);
place(4, 0, mOpenGLCheckBox, 2);
+ place(2, 1, space, 4, 1);
+
place(2, 2, mCustomCursorCheckBox, 2);
place(4, 2, mParticleEffectsCheckBox, 2);
+ place(2, 3, space, 4, 1);
+
place(2, 4, mDisableSDLTransparencyCheckBox, 4);
+ place(2, 5, space, 4, 1);
+
place(0, 6, mFpsSlider, 2);
place(2, 6, mFpsCheckBox).setPadding(3);
place(3, 6, mFpsLabel).setPadding(1);