aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorMax Horn2002-12-14 01:49:08 +0000
committerMax Horn2002-12-14 01:49:08 +0000
commit7e90ae01022bf1b1bb66d1bc5e7b9159c3d70133 (patch)
tree1f6ab32b98ad1e14263a1360fbe0e972dc00d033 /gui
parent826adc976b358f9412cf88070c0c02a75056d62f (diff)
downloadscummvm-rg350-7e90ae01022bf1b1bb66d1bc5e7b9159c3d70133.tar.gz
scummvm-rg350-7e90ae01022bf1b1bb66d1bc5e7b9159c3d70133.tar.bz2
scummvm-rg350-7e90ae01022bf1b1bb66d1bc5e7b9159c3d70133.zip
added a dummy savepath setting; space gets scare, seems we really need tabs
svn-id: r5946
Diffstat (limited to 'gui')
-rw-r--r--gui/options.cpp39
1 files changed, 26 insertions, 13 deletions
diff --git a/gui/options.cpp b/gui/options.cpp
index ff24ce22bf..28cce93884 100644
--- a/gui/options.cpp
+++ b/gui/options.cpp
@@ -19,10 +19,13 @@
*/
#include "stdafx.h"
-#include "options.h"
+#include "browser.h"
+#include "chooser.h"
#include "newgui.h"
+#include "options.h"
#include "PopUpWidget.h"
+//#include "backends/fs/fs.h"
#include "common/config-file.h"
//#include "common/engine.h"
#include "common/gameDetector.h"
@@ -38,13 +41,13 @@ enum {
};
GlobalOptionsDialog::GlobalOptionsDialog(NewGui *gui)
- : Dialog(gui, 10, 25, 320-2*10, 200-2*30)
+ : Dialog(gui, 10, 15, 320-2*10, 200-2*15)
{
// The GFX mode popup & a label
// TODO - add an API to query the list of available GFX modes, and to get/set the mode
- new StaticTextWidget(this, 10, 10+1, 100, kLineHeight, "Graphics mode: ", kTextAlignRight);
+ new StaticTextWidget(this, 5, 10+1, 100, kLineHeight, "Graphics mode: ", kTextAlignRight);
PopUpWidget *gfxPopUp;
- gfxPopUp = new PopUpWidget(this, 110, 10, 180, kLineHeight);
+ gfxPopUp = new PopUpWidget(this, 105, 10, 180, kLineHeight);
gfxPopUp->appendEntry("<default>");
gfxPopUp->appendEntry("-");
gfxPopUp->appendEntry("Normal (no scaling)");
@@ -57,9 +60,9 @@ GlobalOptionsDialog::GlobalOptionsDialog(NewGui *gui)
gfxPopUp->setSelected(0);
// The MIDI mode popup & a label
- new StaticTextWidget(this, 10, 26+1, 100, kLineHeight, "Music driver: ", kTextAlignRight);
+ new StaticTextWidget(this, 5, 26+1, 100, kLineHeight, "Music driver: ", kTextAlignRight);
PopUpWidget *midiPopUp;
- midiPopUp = new PopUpWidget(this, 110, 26, 180, kLineHeight);
+ midiPopUp = new PopUpWidget(this, 105, 26, 180, kLineHeight);
// Populate it
const MusicDrivers *md = GameDetector::getMusicDrivers();
@@ -74,16 +77,16 @@ GlobalOptionsDialog::GlobalOptionsDialog(NewGui *gui)
//
// Sound controllers
//
- const int yoffset = 45;
- new StaticTextWidget(this, 10, yoffset+10, 100, 16, "Master volume: ", kTextAlignRight);
- new StaticTextWidget(this, 10, yoffset+26, 100, 16, "Music volume: ", kTextAlignRight);
- new StaticTextWidget(this, 10, yoffset+42, 100, 16, "SFX volume: ", kTextAlignRight);
+ const int yoffset = 40;
+ new StaticTextWidget(this, 5, yoffset+10, 100, 16, "Master volume: ", kTextAlignRight);
+ new StaticTextWidget(this, 5, yoffset+26, 100, 16, "Music volume: ", kTextAlignRight);
+ new StaticTextWidget(this, 5, yoffset+42, 100, 16, "SFX volume: ", kTextAlignRight);
SliderWidget *masterVolumeSlider, *musicVolumeSlider, *sfxVolumeSlider;
- masterVolumeSlider = new SliderWidget(this, 110, yoffset+8, 85, 12, "Volume1", 0);
- musicVolumeSlider = new SliderWidget(this, 110, yoffset+24, 85, 12, "Volume2", 0);
- sfxVolumeSlider = new SliderWidget(this, 110, yoffset+40, 85, 12, "Volume3", 0);
+ masterVolumeSlider = new SliderWidget(this, 105, yoffset+8, 85, 12, "Volume1", 0);
+ musicVolumeSlider = new SliderWidget(this, 105, yoffset+24, 85, 12, "Volume2", 0);
+ sfxVolumeSlider = new SliderWidget(this, 105, yoffset+40, 85, 12, "Volume3", 0);
masterVolumeSlider->setMinValue(0); masterVolumeSlider->setMaxValue(255);
musicVolumeSlider->setMinValue(0); musicVolumeSlider->setMaxValue(255);
@@ -100,7 +103,17 @@ GlobalOptionsDialog::GlobalOptionsDialog(NewGui *gui)
sfxVolumeLabel->setFlags(WIDGET_CLEARBG);
+ //
+ // Save game path
+ //
+ new StaticTextWidget(this, 5, 106, 100, kLineHeight, "Savegame path: ", kTextAlignRight);
+ new StaticTextWidget(this, 105, 106, 180, kLineHeight, "/foo/bar", kTextAlignLeft);
+ new ButtonWidget(this, 105, 120, 64, 16, "Choose...", 0, 0);
+
+
+ //
// Add OK & Cancel buttons
+ //
addButton(_w-2*(kButtonWidth+10), _h-24, "Cancel", kCloseCmd, 0);
addButton(_w-(kButtonWidth+10), _h-24, "OK", kOKCmd, 0);
}